Intermec PM23c Fingerprint Developer's Guide (PC23d, PC43d/t, PM23c, PM43, PM4 - Page 148
Example, This example prints the Hiragana Letter Small A character Unicode hex 3041
View all Intermec PM23c manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 148 highlights
Appendix A - Character Sets and Keywords Example 5 Convert the bytes to decimal format. Using this example, the byte value 11010000 equals a decimal value of 208, and the byte value 10010110 equals a decimal value of 150. Now that you have determined the decimal value for the Unicode character, you can use the values in a print command: prtxt chr$(208)+chr$(150) When selecting UTF-8 with the NASC command, the font must be selected with the FONT command. Disable UTF-8 encoding by choosing a different character set with the NASC command. When using UTF-8, it is important that the font contains the desired characters. The default font, Univers, contains the largest number of glyphs of the pre-installed fonts. Unicode character numbers can be found at the web site of the Unicode organization (www.unicode.org). It is not recommended to have UTF-8 enabled when printing bar codes since bar code data will use the UTF-8 byte sequence as input, while the human readable uses the UTF-8 mapped character number. Note: FONT and FONTD commands are reset to their defaults after a PRINTFEED (or CLL) command. NASC and NASCD commands are not reset to default after a PRINTFEED (or CLL) command. This example prints the Hiragana Letter Small A character (Unicode hex 3041), corresponding to the UTF-8 sequence 227 dec. + 129 dec. + 129 dec., in the Song font. This is followed by the Cyrillic Capital Letter ZHE (Unicode hex 0416) in the Univers font. 10 NASC "UTF-8" 20 FONT "Song" 30 PRTXT CHR$(227)+CHR$(129)+CHR$(129) 40 PRTXT " = Hiragana Letter Small A" 50 PRPOS 0,35 60 FONT "Univers" 70 PRTXT CHR$(208)+CHR$(150) 80 PRTXT " = Cyrillic Capital Letter ZHE" 90 PRINTFEED 136 Fingerprint Developer's Guide