mod_perl, html forms and unicode/utf-8

2007-06-05 Thread John ORourke
Hi folks, I've been dragged kicking and screaming into the 21st century and am making my mod_perl application fully utf-8 aware and transparent. It's all going OK but I want to know if anyone has a better solution to receiving form data containing non-ASCII chars. Output is fine - I can

Re: mod_perl, html forms and unicode/utf-8

2007-06-05 Thread Jonathan Vanasco
On Jun 5, 2007, at 12:56 PM, John ORourke wrote: my $q=Apache2::Request-new($r); my $known_to_be_utf8 = $q-param('test'); # form post doesn't give charset, none assumed slightly off topic, my suggestion on implementation would be along the lines of this: package Context();

Re: mod_perl, html forms and unicode/utf-8

2007-06-05 Thread Clinton Gormley
Hi John I've been using libapreq, which has a charset method: http://search.cpan.org/~joesuf/libapreq2-2.08/glue/perl/xsbuilder/APR/Request/Param/Param.pod#charset It is fairly limited, it recognises: 0 APREQ_CHARSET_ASCII (7-bit us-ascii) 1 APREQ_CHARSET_LATIN1 (8-bit iso-8859-1) 2

Re: mod_perl, html forms and unicode/utf-8

2007-06-05 Thread John ORourke
Thanks Gents, I've got a certain level of abstraction as per Jonathan's approach, which I can just add the libapreq method. The note about DBD::MySQL is interesting, I was wondering about that! cheers John Clinton Gormley wrote: Hi John I've been using libapreq, which has a charset