Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^3: character encoding & french accents

by rhesa (Vicar)
on Feb 03, 2006 at 16:33 UTC ( [id://527718]=note: print w/replies, xml ) Need Help??


in reply to Re^2: character encoding & french accents
in thread character encoding & french accents

I think getting your developer in here to discuss the details is a very good idea.

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:

use Encode; my $email_body = $cgi->param( 'email_body' ); $email_body = decode_utf8( $email_body );
After this, most conversions and display issues are a snap.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://527718]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (1)
As of 2024-04-16 16:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found