WebReference.com - Chapter 3 from Perl & XML, from O'Reilly and
Associates (11/12) | WebReference   To page 1To page 2To page
3To page 4To page 5To page 6To page 7To page 8To page 9To page
10current pageTo page 12 [previous] [next]  Perl & XML
Character Sets and Encodings  No matter how you choose to manage
your program's output, you must keep in mind the concept of
character encoding--the protocol your output XML document uses
to represent the various symbols of its language, be they an
alphabet of letters or a catalog of ideographs and diacritical
marks. Character encoding may represent the trickiest part of
XML-slinging, perhaps especially so for programmers in Western
Europe and the Americas, most of whom have not explored the
universe of possible encodings beyond the 128 characters of
ASCII.  While it's technically legal for an XML document's
encoding declaration to contain the name of any text encoding
scheme, the only ones that XML processors are, according to
spec, required to understand are UTF-8 an