stefan k has asked for the wisdom of the Perl Monks concerning the following question:
I've been working on a RedHat 9.0 system for quite a while until I figured that removing the UTF-8 things in /etc/sysconfig/i18n cures many of my itchings.
After that I suddenly get an error:
That script uses XML::XPath, parses an XML-file (which does not contain any umlauts or funny stuff), uses the information stored there to fill out a form defined in a second (template-)file and prints the output. This second file contains one umlaut in ISO-8859-1 encoding. Without this umlaut there is no problem.Wide character in print at ./perlskript line 43.
Obviously giving the encoding explicitly in the XML file changed nothing.
When I just read in the file and print it again I don't get any error. Even if I setup the parser, parse the XML file and then print the output, nothing happens. Only when applying the information from the XML file to the template file I get the wide-character-warning. I also tried to set variable EncodeUtf8AsEntity to 1 to no avail.
I'm using perl 5.8.0, XPath Version 1.13.
Any hints, suggestions?
Regards... | Stefan |
you begin bashing the string with a +42 regexp of confusion |
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Yet Another UTF8 Issue
by eserte (Deacon) on Mar 18, 2004 at 09:17 UTC | |
by stefan k (Curate) on Mar 18, 2004 at 10:43 UTC | |
Re: Yet Another UTF8 Issue
by bart (Canon) on Mar 18, 2004 at 13:39 UTC | |
by stefan k (Curate) on Mar 18, 2004 at 14:05 UTC | |
Re: Yet Another UTF8 Issue
by Arrowhead (Monk) on Mar 18, 2004 at 17:40 UTC | |
by stefan k (Curate) on Mar 19, 2004 at 09:53 UTC |