Re: mod_perl and utf8 and CGI->param

2014-09-03 Thread Dr James A Smith
I encode a "pound sign" which as a parameter which indicates whether content is UTF-8, UCS or latin-1 - and this seems to resolve most of the issues... I did take a lot of effort to fix issues with utf8 and there are a lot of these - between form -> post; between requests if storing data in ses

Re: mod_perl and utf8 and CGI->param

2014-09-03 Thread Randal L. Schwartz
> "André" == André Warnier writes: André> The methodology I follow is as follows : André> 1) all html pages of the applications should have a tag like : André> André> 2) all in the page should have the attributes André> enctype="application/form-data" André> accept-charset="." (the s

Re: mod_perl and utf8 and CGI->param

2014-09-03 Thread Cosimo Streppone
On 09/03/2014 11:17 AM, André Warnier wrote: > 3) all forms contain a hidden text like > (some known > sequence of "diacritics" characters guaranteed to have a different byte > length between ISO-8859-x and UTF-8 encoding) > [...] > But it's helped me sleep better for quite a while now. This i

Re: mod_perl and utf8 and CGI->param

2014-09-03 Thread André Warnier
Hi Randal. Randal L. Schwartz wrote: Getting really frustrated with mod_perl2's apparent inability to probably read UTF8 input. Here's my mod_perl2 setup: Apache 2.2.[something] mod_perl 2.0.7 (or nearly that) ModPerl::Registry Perl "script" with CGI.pm Very early in my app: ## ens