Alexander Tamm <alex <at> frantic.com> writes: > 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. > [...] > > # 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
This presumably relies on using Apache::Request::I18N as the request object. If that doesn't work for you, a work-around using a Mason plugin is outlined at http://www.cybaea.net/Blogs/TechNotes/Mason-utf-8-clean.html#h2_form_input which also has more information about getting your databases utf-8 clean. All the best Allan. ------------------------------------------------------------------------------ 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