XML technologies / XML / XML in a Nutshell / Internationalization / XML-defined character sets
Character sets defined in XML
(Excerpt from "XML in a Nutshell" by Elliotte Rusty Harold & W. Scott Means)
A XML parser must be able to process the encodings UTF-16 and UTF-8 or Unicode. However, XML parsers may also support many other character sets. In particular, the specification recommends that processors recognize and read these encodings:
UTF-8 | UTF-16 |
ISO-10646-UCS-2 | ISO-10646-UCS-4 |
ISO-8859-1 | ISO-8859-2 |
ISO-8859-3 | ISO-8859-4 |
ISO-8859-5 | ISO-8859-6 |
ISO-8859-7 | ISO-8859-8 |
ISO-8859-9 | ISO-8859-JP |
Shift_JIS | EUC-JP |
Many XML processors support additional encodings. For example, processors written in Java often support all character sets available in the Java VM (Java Virtual Machine). Some programs also recognize aliases for these encodings; Latin-1 and 8859_1 are sometimes used as synonyms for ISO-8859-1. Such names reduce document portability, however. We recommend using standard names for standard encodings. For encodings not named by the XML 1.0 specification, use one of the names registered with the Internet Assigned Numbers Authority (IANA). Knowing a character set’s name and saving a file in it does not mean your XML parser can read that file. XML parsers are required to support only UTF-8 and UTF-16, not the hundreds of encodings used around the world.
Copyright © 2005 O'Reilly Verlag GmbH & Co. KG
You may print the online version for your private use.
Otherwise, this chapter from the book "XML in a Nutshell" is subject to the same conditions as the printed edition: the work and all its parts are protected by copyright. All rights reserved, including reproduction, translation, microfilming, and storage and processing in electronic systems.
O’Reilly Verlag GmbH & Co. KG, Balthasarstraße 81, 50670 Köln, kommentar(at)oreilly.de
back to top