in reply to LWP::Simple // Special Character problems.

You'll need to experiment with a few different things until you find the one that works... The first thing I'd probably try is:
... binmode STDOUT, ":utf8"; print $webObject;
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.

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:

use Encode; ... $webObject = decode( "utf8", get( $URL )); ...
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.)

Replies are listed 'Best First'.
Re^2: LWP::Simple // Special Character problems.
by ikegami (Patriarch) on May 24, 2007 at 02:27 UTC
    binmode STDOUT, ":utf8"; print $webObject;

    would encode to UTF-8 content that appears to already be UTF-8 encoded. The idea is to convert *from* UTF-8, but you are converting *to* UTF-8. My reply shows some implementations.