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

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

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163

Appendix A — Character Sets and Keywords
136
Fingerprint Developer’s Guide
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.
Example
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
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.