in reply to Re^2: problem with XML::Writer, unicode and Perl 5.6.0 upgrade
in thread problem with XML::Writer, unicode and Perl 5.6.0 upgrade
Anyway, since you appear to be dealing with input that is not really unicode in the first place, you should identify what the true encoding is (probably one of the CP125* sets) and convert it to unicode (see the Encode module) before passing it on to XML::Parser. Probably the easiest way would be a separate script that has nothing to do with XML, but just filters text data, using the Encode module to convert from a non-unicode character set to utf8.
|
|---|