Tech list wrote:
> I have a form that sends the textContent of a div.  When it contains  
> ' ' chars I get unicode character 194, which is "Â".  How can I  
> have perl see this correctly?  "use utf8;" at the top didn't seem to  
> help...  I also want to save it in mysql correctly as well.

I recommend using UTF-8 entirely for your site. You'll need to add this
in your VirtualHost-section:

# eg. right under DocumentRoot
AddDefaultCharset       UTF-8

# I recommend the following line if you have utf-8 characters
# in your code, which I recommend.
PerlSetVar              MasonPreamble "use utf8;

# This line marks your GET and POST parameters as utf-8
# you might need to put this in the same section where
# you set your handler, but I'm not sure
PerlSetVar              DecodeParms     UTF-8


Kind regards,
Alex

-- 
Alexander Tamm
Software developer, Frantic media
a...@frantic.com


------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Mason-users mailing list
Mason-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mason-users

Reply via email to