Thanks to Michael, Michael, Lloyd, Cees,
your answers and insights have made things clearer for me.
I think I'll use a combination of all of that for this new application we're
writing.
In other words, to program defensively, I propose to do this :
when sending the html page with the form :
-
On 02/24/2011 04:31 PM, André Warnier wrote:
I wonder if someone here can give me a clue as to where to look...
The CGI.pm documentation talks about the -utf8 import flag which is
probably what you're looking for. But it does caution not to use it for
anything that needs to do file uploads.
Hi André,
There is a perlmonks post from a few years ago that explains one way
of automating this with CGI.pm. I've used this for several years now
without problems.
http://www.perlmonks.org/?node_id=651574
Just remember that decoding params is just one part of dealing with
utf-8. You need to
FWIW, with CGI.pm I always iterate through the params and Encode::decode with
the appropriate encoding with an exception for anything binary. (file uploads
etc)
-Original Message-
From: André Warnier [mailto:a...@ice-sa.com]
Sent: Thursday, February 24, 2011 3:31 PM
To: mod_perl list
Michael Peters wrote:
On 02/24/2011 04:31 PM, André Warnier wrote:
I wonder if someone here can give me a clue as to where to look...
The CGI.pm documentation talks about the -utf8 import flag which is
probably what you're looking for. But it does caution not to use it for
anything that
On 02/24/2011 03:31 PM, André Warnier wrote:
Hi.
I wonder if someone here can give me a clue as to where to look...
If you have a fairly recent CGI.pm, it will decode utf-8 properly for
you (even avoiding double-decoding), but there are some caveats. In
addition to what others have already