Programming-related tutorial
- Looking up and saving special characters: Take the character (女秀) as an example,
ANS:
You may refer to the following example to look up and save special characters:
1. Go toCNS11643 Chinese Character Database to find the unicode of the character.
You can search by strokes, zhuyin, or radical. Here, we search by zhuyin and find that the unicode of the character is 36E2. The screen is as follows:
Search Result (Chinese Only)
2.Convert 36E2 from hexadecimal to decimal to get 14050 (this can be done by using the Calculator program in Accessories, and switching to scientific mode).
3.Next, go to the maintenance program and enter “ 蕭名㛢 ” in the name field. The “&#” and the semicolon must be added before and after “14050” respectively as these represent the character (女秀).
4.Finally, save the file, so the character will display correctly when editing in the Academic Information System and in reports.
- How to use functions related to Multibyte: Take "strtoupper()" as an example,
ANS:
strtoupper (): Converts the string to uppercase.
For Example:
|
<?php |
1. "strtoupper()" will change all English letters within a Chinese string to uppercase. To avoid this, we recommend that mb_strtoupper($string, ‘big5’) is used when the string is in Chinese characters.
2. Similarly, strtolower() has the same issues that should be avoided.
3. For details about Multibyte-related functions, please refer to: PHP Multibyte String

cc.nthu.edu.tw