in reply to LWP::Simple // Special Character problems.
Then of course you have to make sure you have an appropriate method for actually viewing the output -- a utf8-aware terminal window, a browser set to utf8 encoding, etc.... binmode STDOUT, ":utf8"; print $webObject;
If that doesn't work, and you don't know what else to try, reply back with some more details (an actual url, what you are using to view the data, etc).
(update: sometimes it's hard to work out the logic of what is going wrong... another thing to try, if the above does not work, is:
If you try that without the "binmode" thing, you should get warnings about "wide character in print...", and doing binmode STDOUT,":utf8"; should make those warnings go away.)use Encode; ... $webObject = decode( "utf8", get( $URL )); ...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: LWP::Simple // Special Character problems.
by ikegami (Patriarch) on May 24, 2007 at 02:27 UTC |