Skip to main content

Character Encoding Set

·2542 words·12 mins
Posts 101 ascii encoding
Table of Contents
Showing you the differences between ASCII, CP-1252 and ISO-8859-1.

Intro
#

ASCII
ASCII is a 7-bit character encoding. It can go from 0 to 127 (0x7F) only.
CP-1252
CP-1252 is an 8-bit character encoding based on ASCII. It is identical to ASCII up to code point 127.
ISO-8859-1
8859-1 is also an 8-bit character encoding based on CP-1252. However, 8859-1 differs from CP-1252 in sticks 8 (0x80-0x8F) and 9 (0x90-0x9F).
8859-1 is also the default character set used in HTML4.

Unicode, UTF-8 or UTF-16, is a multi-byte character encoding based on ISO-8859-1. They are identical up to code point 255. UTF-8 is the default character set used in HTML5. See more encoding methods at :

Encoding 101
·580 words·3 mins
Posts 101 cli encoding
Some notes about encoding: HTML encoding, URL encoding and ASCII encoding.

Code PointASCIICP-12518859-1Unicode
0x00 - 0x7fsame<-same<-same<-same
0x80 - 0x8fN/Adiff-><-diff<-same
0x90 - 0x9fN/Adiff-><-diff<-same
0xa0 - 0xffN/Asamesame<-same

Character Sets
#

All the 256 characters are broken down to 3 groups:

  • From 0 - 127
  • From 128 - 159 (stick8 and stick9)
  • From 160 - 255

:zero:-:one::two::seven:
#

DescriptionASCIICP-12528859-1OctHexDecStick/Pos
NullNULNULNUL0000x0000/1
Start of HeaderSOHSOHSOH0010x0110/2
Start of TextSTXSTXSTX0020x0220/3
End of TextETXETXETX0030x0330/4
End of TransmissionEOTEOTEOT0040x0440/5
EnquiryENQENQENQ0050x0550/6
AcknowledgeACKACKACK0060x0660/7
BellBELBELBEL0070x0770/8
BackspaceBSBSBS0100x0880/9
Horizontal TabHTHTHT0110x0990/10
LinefeedLFLFLF0120x0A100/11
Vertical TabVTVTVT0130x0B110/12
Form FeedFFFFFF0140x0C120/13
Carriage ReturnCRCRCR0150x0D130/14
Shift OutSOSOSO0160x0E140/15
Shift InSISISI0170x0F150/16
Data Link EscapeDLEDLEDLE0200x10161/1
Device Control 1DC1DC1DC10210x11171/2
Device Control 2DC2DC2DC20220x12181/3
Device Control 3DC3DC3DC30230x13191/4
Device Control 4DC4DC4DC40240x14201/5
Negative AcknowledgeNAKNAKNAK0250x15211/6
Synchronous IdleSYNSYNSYN0260x16221/7
End of TransmissionETBETBETB0270x17231/8
CancelCANCANCAN0300x18241/9
End of MediumEMEMEM0310x19251/10
SubstituteSUBSUBSUB0320x1A261/11
EscapeESCESCESC0330x1B271/12
File SeparatorFSFSFS0340x1C281/13
Group SeparatorGSGSGS0350x1D291/14
Record SeparatorRSRSRS0360x1E301/15
Unit SeparatorUSUSUS0370x1F311/16
SpaceSPSPSP0400x20322/1
Exclamation Mark!!!0410x21332/2
Quotation Mark"""0420x22342/3
Number Sign###0430x23352/4
Dollar Sign$$$0440x24362/5
Percent Sign%%%0450x25372/6
Ampersand&&&0460x26382/7
Apostrophe'''0470x27392/8
Left Parenthesis(((0500x28402/9
Right Parenthesis)))0510x29412/10
Asterisk***0520x2A422/11
Plus Sign+++0530x2B432/12
Comma,,,0540x2C442/13
Hyphen-Minus---0550x2D452/14
Full Stop...0560x2E462/15
Solidus///0570x2F472/16
Digit Zero0000600x30483/1
Digit One1110610x31493/2
Digit Two2220620x32503/3
Digit Three3330630x33513/4
Digit Four4440640x34523/5
Digit Five5550650x35533/6
Digit Six6660660x36543/7
Digit Seven7770670x37553/8
Digit Eight8880700x38563/9
Digit Nine9990710x39573/10
Colon:::0720x3A583/11
Semicolon;;;0730x3B593/12
Less-Than Sign<<<0740x3C603/13
Equals Sign===0750x3D613/14
Greater-Than Sign>>>0760x3E623/15
Question Mark???0770x3F633/16
Commercial At@@@1000x40644/1
Latin Capital Letter AAAA1010x41654/2
Latin Capital Letter BBBB1020x42664/3
Latin Capital Letter CCCC1030x43674/4
Latin Capital Letter DDDD1040x44684/5
Latin Capital Letter EEEE1050x45694/6
Latin Capital Letter FFFF1060x46704/7
Latin Capital Letter GGGG1070x47714/8
Latin Capital Letter HHHH1100x48724/9
Latin Capital Letter IIII1110x49734/10
Latin Capital Letter JJJJ1120x4A744/11
Latin Capital Letter KKKK1130x4B754/12
Latin Capital Letter LLLL1140x4C764/13
Latin Capital Letter MMMM1150x4D774/14
Latin Capital Letter NNNN1160x4E784/15
Latin Capital Letter OOOO1170x4F794/16
Latin Capital Letter PPPP1200x50805/1
Latin Capital Letter QQQQ1210x51815/2
Latin Capital Letter RRRR1220x52825/3
Latin Capital Letter SSSS1230x53835/4
Latin Capital Letter TTTT1240x54845/5
Latin Capital Letter UUUU1250x55855/6
Latin Capital Letter VVVV1260x56865/7
Latin Capital Letter WWWW1270x57875/8
Latin Capital Letter XXXX1300x58885/9
Latin Capital Letter YYYY1310x59895/10
Latin Capital Letter ZZZZ1320x5A905/11
Left Square Bracket[[[1330x5B915/12
Reverse Solidus\\\1340x5C925/13
Right Square Bracket]]]1350x5D935/14
Circumflex Accent^^^1360x5E945/15
Low Line___1370x5F955/16
Grave Accent```1400x60966/1
Latin Small Letter Aaaa1410x61976/2
Latin Small Letter Bbbb1420x62986/3
Latin Small Letter Cccc1430x63996/4
Latin Small Letter Dddd1440x641006/5
Latin Small Letter Eeee1450x651016/6
Latin Small Letter Ffff1460x661026/7
Latin Small Letter Gggg1470x671036/8
Latin Small Letter Hhhh1500x681046/9
Latin Small Letter Iiii1510x691056/10
Latin Small Letter Jjjj1520x6A1066/10
Latin Small Letter Kkkk1530x6B1076/10
Latin Small Letter Llll1540x6C1086/10
Latin Small Letter Mmmm1550x6D1096/10
Latin Small Letter Nnnn1560x6E1106/10
Latin Small Letter Oooo1570x6F1116/10
Latin Small Letter Pppp1600x701127/1
Latin Small Letter Qqqq1610x711137/2
Latin Small Letter Rrrr1620x721147/3
Latin Small Letter Ssss1630x731157/4
Latin Small Letter Tttt1640x741167/5
Latin Small Letter Uuuu1650x751177/6
Latin Small Letter Vvvv1660x761187/7
Latin Small Letter Wwww1670x771197/8
Latin Small Letter Xxxx1700x781207/9
Latin Small Letter Yyyy1710x791217/10
Latin Small Letter Zzzz1720x7A1227/11
Left Curly Bracket{{{1730x7B1237/12
Vertical Line|||1740x7C1247/13
Right Curly Bracket}}}1750x7D1257/14
Tilde~~~1760x7E1267/15
DeleteDELDELDEL1770x7F1277/16

:one::two::eight:-:one::five::nine:
#

StickPosCP-12528859-1HexDecDescription
81PAD0x80128Pad Stop
2HOP0x81129High octet preset
3BPH0x82130Break Permitted Here
4ƒNBH0x83131No Break Here
5IND0x84132Index
6NEL0x85133Next Line
7SSA0x86134Start of Selected Area
8ESA0x87135End of Selected Area
9ˆHTS0x88136Horizontal Tabulation Set
10HTJ0x89137Horizontal Tabulation with Justification
11ŠVTS0x8A138Vertical Tabulation Set
12PLD0x8B139Partial Line Down
13ŒPLU0x8C140Partial Line Up
14RI0x8D141Reverse Line Feed
15ŽSS20x8E142Single-Shift 2
16SS30x8F143Single-Shift 3
StickPosCP-12528859-1HexDecDescription
91DCS0x90144Device control string
2PU10x91145Private use 1
3PU20x92146Private use 2
4STS0x93147Set transmit state
5CCH0x94148Cancel character
6MW0x95149Message waiting
7SPA0x96150Start protected area
8EPA0x97151End protected area
9˜SOS0x98152Start of string
10SGCI0x99153Single graphic character introducer
11šSCI0x9A154Single character introducer
12CSI0x9B155Control sequence introducer
13œST0x9C156String terminator
14OSC0x9D157Operating system command
15žPM0x9E158Private message
16ŸAPC0x9F159Application program command

:one::six::zero:-:two::five::five:
#

StickPosCP-12528859-1HexDecDescription
101[NBSP][NBSP]0xA0160No-Break Space
20xA1161Inverted Exclamation Mark
30xA2162Cent Sign
40xA3163Pound Sign
50xA4164Currency Sign
60xA5165Yen Sign
70xA6166Broken Bar
80xA7167Section Sign
90xA8168Diaeresis
100xA9169Copyright Sign
110xAA170Feminine Ordinal Indicator
120xAB171Left-Pointing Double Angle Quotation Mark
130xAC172Not Sign
140xAD173Soft Hyphen
150xAE174Registered Sign
160xAF175Macron
1110xB0176Degree Sign
20xB1177Plus-Minus Sign
30xB2178Superscript Two
40xB3179Superscript Three
50xB4180Acute Accent
60xB5181Micro Sign
70xB6182Pilcrow Sign
80xB7183Middle Dot
90xB8184Cedilla
100xB9185Superscript One
110xBA186Masculine Ordinal Indicator
120xBB187Right-Pointing Double Angle Quotation Mark
130xBC188Fraction One Quarter
140xBD189Fraction One Half
150xBE190Fraction Three Quarters
160xBF191Inverted Question Mark
1210xC0192Latin Capital Letter A with Grave
2¡¡0xC1193Latin Capital Letter A with Acute
3¢¢0xC2194Latin Capital Letter A with Circumflex
4££0xC3195Latin Capital Letter A with Tilde
5¤¤0xC4196Latin Capital Letter A with Diaeresis
6¥¥0xC5197Latin Capital Letter A with Ring Above
7¦¦0xC6198Latin Capital Letter AE (ligature)
8§§0xC7199Latin Capital Letter C with Cedilla
9¨¨0xC8200Diaeresis
10©©0xC9201Copyright Sign
11ªª0xCA202Feminine Ordinal Indicator
12««0xCB203Left-Pointing Double Angle Quotation Mark
13¬¬0xCC204Not Sign
14­­0xCD205Soft Hyphen
15®®0xCE206Registered Sign
16¯¯0xCF207Macron
131°°0xD0208Degree Sign
2±±0xD1209Plus-Minus Sign
3´´0xD2210Acute Accent
4µµ0xD3211Micro Sign
50xD4212Pilcrow Sign
6··0xD5213Middle Dot
7¸¸0xD6214Cedilla
8¹¹0xD7215Superscript One
9ºº0xD8216Masculine Ordinal Indicator
10»»0xD9217Right-Pointing Double Angle Quotation Mark
11¼¼0xDA218Fraction One Quarter
12½½0xDB219Fraction One Half
13¾¾0xDC220Fraction Three Quarters
14¿¿0xDD221Inverted Question Mark
15ÀÀ0xDE222Latin Capital Letter A with Grave
16ÁÁ0xDF223Latin Capital Letter A with Acute
141àà0xE0224Latin Small Letter A with Grave
2áá0xE1225Latin Small Letter A with Acute
3ââ0xE2226Latin Small Letter A with Circumflex
4ãã0xE3227Latin Small Letter A with Tilde
5ää0xE4228Latin Small Letter A with Diaeresis
6åå0xE5229Latin Small Letter A with Ring Above
7ææ0xE6230Latin Small Letter AE (ligature)
8çç0xE7231Latin Small Letter C with Cedilla
9èè0xE8232Latin Small Letter E with Grave
10éé0xE9233Latin Small Letter E with Acute
11êê0xEA234Latin Small Letter E with Circumflex
12ëë0xEB235Latin Small Letter E with Diaeresis
13ìì0xEC236Latin Small Letter I with Grave
14íí0xED237Latin Small Letter I with Acute
15îî0xEE238Latin Small Letter I with Circumflex
16ïï0xEF239Latin Small Letter I with Diaeresis
151ðð0xF0240Latin Small Letter Eth (Icelandic)
2ññ0xF1241Latin Small Letter N with Tilde
3òò0xF2242Latin Small Letter O with Grave
4óó0xF3243Latin Small Letter O with Acute
5ôô0xF4244Latin Small Letter O with Circumflex
6õõ0xF5245Latin Small Letter O with Tilde
7öö0xF6246Latin Small Letter O with Diaeresis
8÷÷0xF7247Division Sign
9øø0xF8248Latin Small Letter O with Stroke
10ùù0xF9249Latin Small Letter U with Grave
11úú0xFA250Latin Small Letter U with Acute
12ûû0xFB251Latin Small Letter U with Circumflex
13üü0xFC252Latin Small Letter U with Diaeresis
14ýý0xFD253Latin Small Letter Y with Acute
15þþ0xFE254Latin Small Letter Thorn (Icelandic)
16ßß0xFF255Latin Small Letter Sharp S (German)

Links#

Related

Encoding 101
·580 words·3 mins
Posts 101 cli encoding
Some notes about encoding: HTML encoding, URL encoding and ASCII encoding.
Tunnelling with SSH Port Forwarding
·1310 words·7 mins
Posts 101 cli ssh
Quick notes on tunnelling with SSH port forwarding.
Podman 101
·1829 words·9 mins
Posts 101 podman cli tools
Docker alternative with Podman.