in reply to Re^2: character encoding & french accents
in thread character encoding & french accents
I've found on several occasions that it's necessary to manually upgrade form input to utf8. For some reason, CGI returns raw byte strings, and those might end up being upgraded to utf once more, resulting in lots of squiggly characters. I did this like so:
After this, most conversions and display issues are a snap.use Encode; my $email_body = $cgi->param( 'email_body' ); $email_body = decode_utf8( $email_body );
|
|---|