摘要 |
<p>A character code processing device includes: a font file containing surrogate pairs in an external character region of a unicode; and a conversion table which correlates a 4-byte code identifying a surrogate pair character with a 2-byte code identifying a surrogate pair registered in the font file. The input character code string is cut out by two bytes and it is judged whether the 2-byte code is a code for a surrogate pair. If yes, the next 2-byte code is acquired (surrogate pair detection means). The 4-byte code indicating the surrogate pairs is converted into 2-byte codes by referencing the conversion table (code replacement means).</p> |