This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: ANSI encoding
- From: Mike Brown <mike at skew dot org>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Wed, 22 May 2002 19:27:42 -0600 (MDT)
- Subject: Re: [xsl] ANSI encoding
- Reply-to: xsl-list at lists dot mulberrytech dot com
Joel Konkle-Parker wrote:
> What's the <?xml version="1.0" encoding=""?> encoding="" string for
> ANSI?
ANSI, these days, is more often than not a generic name for any one of a dozen
or more Windows platform default encodings. These encodings have "code page"
numbers as well as a variety of more widely recognized aliases. It is one of
the more widely recognized aliases that you need to use. You might try
"windows-1252" if you're in the USA or (very-) Western Europe, and if you
haven't configured your OS for some other default region.
However, if I were you, I would get an editor that doesn't rely on the OS to
decide the encoding of the files it writes. Only UTF-8 and UTF-16 are
guaranteed to be supported by every XML parser, so it's risky to use any
others. There are plenty of editors that can save a file as UTF-8, or that
give you a choice. With such an editor, you wouldn't have to guess at the
encoding that was used.
- Mike
____________________________________________________________________________
mike j. brown | xml/xslt: http://skew.org/xml/
denver/boulder, colorado, usa | resume: http://skew.org/~mike/resume/
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list