On Wednesday, 10. July 2002 14:13, Robin Berjon wrote:
> On Wednesday 10 July 2002 14:04, Nigel Peck wrote:
> > So why does XML::XPath error on the n' in don't?
>
> The likeliest reason is that your file isn't in the correct encoding.
> Accents and co will cause trouble if the parser expects UTF-8 but you have
> you content in another encoding.
Specifically, I guess you are using the french accent characters on your
keyboard, which are _not_ the ASCII single quote or backtick. Those two
characters are ISO-8859-1 characters with character codes > 128, thus any XML
parser will error out on that, unless you add an encoding definition or make
that UTF-8 (or plain ASCII). Basicaly, you want to use the single quote
anyways, not the accent, so just do so. Never use the accents key unless you
want to create letters with accents.
--
CU
Joerg
PGP Public Key at http://ich.bin.kein.hoschi.de/~trouble/public_key.asc
PGP Key fingerprint = D34F 57C4 99D8 8F16 E16E 7779 CDDC 41A4 4C48 6F94
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]