in reply to Re^2: LWP gives funky characters
in thread LWP gives funky characters

Then it's the first possibility. You're missing:

print $cgi->header(-type=>'text/html', -charset=>'UTF-8');

You probably have

print $cgi->header(-type=>'text/html');

which is the same as

print $cgi->header(-type=>'text/html', -charset=>'ISO-8859-1');

That tells the browser you are using one character set when you are using another.

Replies are listed 'Best First'.
Re^4: LWP gives funky characters
by jhanna (Scribe) on Jan 25, 2007 at 03:23 UTC
    Hmmm... I'm pretty stuck.

    As I'm looking at it I think Perl is probably doing the right thing, but that the UTF8 string is getting double encoded somewhere else. Thanks, though. That's what I get for going perl -> sql -> aspx -> javascript -> dhtml.... I'm hoping I can fix it coming out of aspx or in the javascript.