# Chinese telegraph code

The Chinese telegraph code, or Chinese commercial code, is a four-digit character encoding enabling the use of Chinese characters in electrical telegraph messages.

## Encoding and decoding

A codebook is provided for encoding and decoding the Chinese telegraph code. It shows one-to-one correspondence between Chinese characters and four-digit numbers from 0000 to 9999. Chinese characters are arranged and numbered in dictionary order according to their radicals and strokes. Each page of the book shows 100 pairs of a Chinese character and a number in a 10×10 table. The most significant two digits of a code matches the page number, the next digit matches the row number, and the least significant digit matches the column number, with 1 being the column on the far right. For example, the code 0022 for the character 中 (zhōng), meaning “center,” is given in page 00, row 2, column 2 of the codebook, and the code 2429 for the character 文 (wén), meaning “script,” is given in page 24, row 2, column 9. The PRC’s Standard Telegraph Codebook (Ministry of Post and Telecommunications 2002) provides codes for approximately 7,000 Chinese characters.
Senders convert their messages written with Chinese characters to a sequence of digits according to the codebook. For instance, the phrase 中文信息 (Zhōngwén xìnxī), meaning “information in Chinese,” is rendered into the code as 0022 2429 0207 1873. It is transmitted using Morse code. Receivers decode the Morse code to get a sequence of digits, chop it into an array of quadruplets, and then decode them one by one referring to the book. Because non-digit characters were not used, the Morse codes for digits could be simplified, for example one's several consequent dashes could be replaced with a single dash.
The codebook also defines codes for Zhuyin alphabet, Latin alphabet, Cyrillic alphabet, and various symbols including special symbols for months, days in a month, and hours.
Senders may translate their messages into numbers by themselves or pay a small charge to have them translated by a telegrapher. Chinese expert telegraphers used to remember several thousands of codes of the most frequent use.
The Standard Telegraph Codebook gives alternative three-letter code (AAA, AAB, ...) for Chinese characters. It compresses telegram messages and cuts international fees by 25% as compared to the four-digit code.

### Use

Looking up a character given a number is straightforward: page, row, column. However, looking up a number given a character is more difficult, as it requires analyzing the character. The four-corner method was developed in the 1920s to allow people to more easily look up characters by the shape, and remains in use today as a Chinese input method for computers.

## History

The first Chinese telegraph code for was invented following the introduction of telegraphy to China in 1871, when the Great Northern Telegraph Company laid a cable between Shanghai and Hong Kong, linking the territory of the Qing dynasty to the international telegraph system.$^{:36}$ Septime Auguste Viguier, a French customs officer in Shanghai, published a codebook of Chinese characters in 1872, supplanting an earlier work by Danish astronomer Hans Schjellerup. Schjellerup and Viguier selected a small subset of commonly used characters and assigned each character a four-digit code between 0001 and 9999. As a result, tens of thousands of Chinese characters were simply not included in telegraphy.$^{:36}$
In consideration of the former code's insufficiency and disorder of characters, Zheng Guanying compiled a new codebook in 1881. It remained in effect until the Ministry of Transportation and Communications printed a new book in 1929. In 1933, a supplement was added to the book.
After the establishment of the People's Republic of China in 1949, the codebook forked into two different versions, due to revisions made in the mainland China and Taiwan independently from each other. The mainland version, the Standard Telegraph Codebook, adopted simplified characters in 1983.

## Application

The Chinese telegraph code can be used for a Chinese input method for computers. Ordinary computer users today hardly master it because it needs a lot of rote memorization. However, the related four-corner method, which allows one to look up characters by shape, is used.
Both the Hong Kong and Macau Resident Identity Cards display the Chinese telegraph code for the holder’s Chinese name. Business forms provided by the government and corporations in Hong Kong often require filling out telegraph codes for Chinese names. The codes help to input Chinese characters into a computer. When filling up the DS-160 form for the US visa, the Chinese telegraph codes are required if the applicant has a name in Chinese characters.
Chinese telegraph code is used extensively in law enforcement investigations worldwide that involve ethnic Chinese subjects where variant phonetic spellings of Chinese names can create confusion. Dialectical differences (Mr. Wu in Mandarin becomes Mr. Ng in Cantonese (吳先生); while Mr. Wu in Cantonese would become Mr. Hu in Mandarin (胡先生)) and differing romanization systems (Mr. Xiao in the Hanyu Pinyin system, and Mr. Hsiao in the Wade–Giles system) can create serious problems for investigators, but can be remedied by application of Chinese telegraph code. For instance, investigators following a subject in Taiwan named Hsiao Ai-Kuo might not know this is the same person known in mainland China as Xiao Aiguo and Hong Kong as Siu Oi-Kwok until codes are checked for the actual Chinese characters to determine all match as CTC: 5618/1947/0948 for 萧爱国 (simplified) / 蕭愛國 (traditional).