- Backwards compatibility with ASCII encoding
(Both UTF-8 and ASCII encoding should map all ASCII characters to the same 1-byte number)
- Allow easy recovery of the string from error
(Even if a byte is missing, recover from the next character)
Back
How is the MIME type specified in HTTP?
Front
In "Content-Type" header as "type/subtype"
e.g. Content-Type: text/html
Back
How can we specify Unicode using Content-Type HTTP header?
Front
Content-Type: text/html; charset=UTF-8
Back
What lengths can UTF-16 strings be?
Front
2 or 4 bytes
Back
What are the problems with the UCS-2 scheme? (2-byte Universal Character Set)
Front
- Waste of space
- Legacy applications cannot handle Unicode data even if data contains only ASCII characters
- Unicode applications cannot handle legacy ASCII data
Back
What is a code page?
Front
A unique number given to a particular character encoding by a system
e.g. On Windows: Hebrew (862), Greek (727), Korean (949)
Back
What is a character encoding/set?
Front
A mapping between numeric numbers and alphabetic characters