Character Arrangement and Structure for Code 128
Windows format and IBM AFP Format

(e.g. when printing fonts from an MVS mainframe and also viewing fonts on a PC with AFP Viewer)

Value
Code
A
Code
B

Code
C

EBCDIC Hex Position

Windows ASCII Decimal Position
Value
Code
A
Code
B
Code
C
EBCDIC Hex Position
Windows ASCII Decimal Position
0
Sp
Sp

00

A0
160

54

V
V

54

54

84
1
!
!

01

A1
161

55

W
W

55

55

85
2
"
"

02

A2
162

56

X
X

56

56

86
3
#
#

03

A3
163

57

Y
Y

57

57

87
4
$
$

04

A4
164

58

Z
Z

58

58

88
5
%
%

05

A5
165

59

[
[

59

59

89
6
&
&

06

A6
166

60

\
\

60

60

96
7
'
'

07

A7
167

61

]
]

61

61

97
8
(
(

08

A8
168

62

^
^

62

62

98
9
)
)

09

A9
169

63

_
_

63

63

99
10
*
*

10

10
16

64

NUL
`

64

64

100

11

+
+

11

11
17

65

SOH
a

65

65

101
12
,
,

12

12
18

66

STX
b

66

66

102
13
-
-

13

13
19

67

ETX
c

67

67

103
14
.
.

14

14
20

68

EOT
d

68

68

104
15
/
/

15

15
21

69

EOQ
e

69

69

105
16
0
0

16

16
22

70

ACK
f

70

70

112
17
1
1

17

17
23

71

BEL
g

71

71

113
18
2
2

18

18
24

72

BS
h

72

72

114
19
3
3

19

19
25

73

HT
i

73

73

115
20
4
4

20

20
32

74

LF
j

74

74

116
21
5
5

21

21
33

75

VT
k

75

75

117
22
6
6

22

22
34

76

FF
l

76

76

118
23
7
7

23

23
35

77

CR
m

77

77

119
24
8
8

24

24
36

78

SO
n

78

78

120
25
9
9

25

25
37

79

SI
o

79

79

121
26
:
:

26

26
38

80

DLE
p

80

80

128
27
;
;

27

27
39

81

DC1
q

81

81

129
28
<
<

28

28
40

82

DC2
r

82

82

130
29
=
=

29

29
41

83

DC3
s

83

83

131
30
>
>

30

30
48

84

DC4
t

84

84

132
31
?
?

31

31
49

85

NAK
u

85

85

133
32
@
@

32

32
50

86

SYN
v

86

86

134
33
A
A

33

33
51

87

ETB
w

87

87

135
34
B
B

34

34
52

88

CAN
x

88

88

136
35
C
C

35

35
53

89

EM
y

89

89

137
36
D
D

36

36
54

90

SUB
z

90

90

144
37
E
E

37

37
55

91

ESC
{

91

91

145
38
F
F

38

38
56

92

FS
|

92

92

146
39
G
G

39

39
57

93

GS
}

93

93

147
40
H
H

40

3F*
63

94

RS
~

94

94

148
41
I
I

41

41
65

95

US
DEL

95

95

149
42
J
J

42

42
66

96

FNC 3
FNC 3

96

96

150
43
K
K

43

43
67

97

FNC 2
FNC 2

97

97

151
44
L
L

44

44
68

98

SHIFT
SHIFT

98

98

152
45
M
M

45

45
69

99

Code C
Code C

99

99

153
46
N
N

46

46
70

100

Code B
Code B

Code B

B0
176
47
O
O

47

47
71

101

FNC 4
FNC 4

Code A

B1
177
48
P
P

48

48
72
102
FNC 1 FNC 1
FNC 1
B2
178
49
Q
Q

49

49
73
103
Start (Code A)
B3
179
50
R
R

50

50
80
104
Start (Code B)
B4
180
51
S S
51
51
81
105
Start (Code C)
B5
181
52
T T
52
52
82

Stop
B6
182
53
U U
53
53
83
 
*Note: the character pair '40' which you would expect to find in 'Hex 40' has been moved to 'Hex 3F. This is because in an AFP font 'Hex 40' is the position of the blank space, and the character in this position will always print as a blank.