List Info

Thread: Trouble encoding characters




Trouble encoding characters
user name
2006-11-28 15:05:08
Hi,

if you're on linux you could try xmllint to parse the xml
file. That's
what i do to capture encoding errors.


Ingrid

> Marijn,

> Character encoding issues can easily drive one insane.
 You
need to be
> fully aware of how every program is interpreting the
XML. If you are sure
> that the string you added to your data is encoded in
UTF-8, then are you
> also sure that your text editor is interpreting that
data as UTF-8? What is
> the declaration at the top of your XML file? Does it
include an encoding
> attribute. For instance:

> <?xml version="1.0"
encoding="UTF-8"?>

> Try viewing your file in a web browser. Change the
encoding value if it does
> not show up correctly. Other likely values would be
ISO-8859-1 or
> Windows-1252. It may also depend on your database's
configuration as well as
> the program that inserts the data into the database.

> You can generally rely on the way XML::LibXML handles
character encodings,
> but the integrity of your process will depend on every
other program that
> touches the XML data. Virtually any character encoding
issue can be solved
> with Perl's Encode module, if you know the requirements
for incoming and
> outgoing encodings.
_______________________________________________
Perl-XML mailing list
Perl-XMLlistserv.ActiveState.com
To unsubscribe: http:/
/listserv.ActiveState.com/mailman/mysubs
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )