There's more than one way to do things | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Unfortunately, you haven't provided enough information. How do you include the non-ascii characters into the XML?
The following creates a well-formed XML: #!/usr/bin/perl use warnings; use strict; use utf8; binmode STDOUT, ':encoding(UTF-8)'; print "<?xml version='1.0' encoding='utf-8'?><áéíóůÿ/>"; Note the utf8 which interprets the characters in the right way. If you're reading the characters from a file, you need to specify the :encoding(UTF-8) layer for it, as well. Etc.
In reply to Re: Encoding horridness
by choroba
|
|