Full angle character

Full angle - refers to a character occupies two standard character locations.

Full angle character

Simply speaking, full-angle characters occupy 2 byte locations, half-width character (Half-Width Characters) occupies 1 byte location. The difference between them is mainly manifested in entering arabic number word, English letters, punctuation, special symbols, which only need to take one byte general use half-angle input. If you type in full angle, a space is generated between each byte. The registration name of the general website, the password is added by the letter, and if you use a full-end input, it will generate an error. Each Chinese character takes up 2 bytes, so regardless of whether you use a full corner or a half-way input.

We know that in Windows, Chinese and full-horn characters take two bytes and use ASCII Chart 2 (CODES 128-255). We can use this to detect whether the user entered is Chinese and full-horn characters. In fact, the first byte of the full-horn characters is always set to 163, and the second byte is the same half-way character code plus 128 (excluding spaces). If the half angle A is 65, the full angle A is 163 (first byte), 193 (second byte, 128 + 65). For Chinese, its first byte is set to be greater than 163, (such as 'A' is: 176 162), we can do not convert in Chinese.

Related Articles
TOP