Kevin Pfeiffer wrote: > I'm trying to fix a couple small problems in WWW::LEO.pm (accesses the Leo > German-English web server). One problem I can't solve. After switching to > my current Linux (SuSE) my leo script returns, for example: > > "merkwrdig" instead of "merkwÃrdig" (umlauts do not display) > > Perhaps this is because the command line is now UTF. The webpage encoding > is charset=iso-8859-15. Looking at a dump of what HTTP::Request gives me I > see: > > <td class="td1" valign="middle" width="45%">merkwrdigerweise</td> > > Is there an easy way to convert the iso-8859-15 charset to UTF-8 (what I > think my commandline is)?
The quick answer I found was to change my locale LANG variable to something like "[EMAIL PROTECTED]" and this works fine, but then the environment is no longer UTF. So immediate problem solved, but curious to hear comments and suggestions. -K -- Kevin Pfeiffer -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>
