Re: Bug: Character sets and $r->custom_response

2008-05-23 Thread Clinton Gormley
> this isn't a mod_perl thing, it's an httpd thing. this is from 1.3: > >http://www.mail-archive.com/[EMAIL PROTECTED]/msg20549.html > > it seems the same holds true in httpd 2.0, it seems. see > ap_send_error_response in > >modules/http/http_protocol.c > > try setting subprocess_env

Re: Bug: Character sets and $r->custom_response

2008-05-23 Thread Geoffrey Young
Clinton Gormley wrote: Hi all There seems to be a bug in the mod_perl2/apache2 handling of character sets for $r->custom_response(). I'm not sure which is at fault. My pages are all in UTF8, but I can't find a way to set this character set for custom generated error pages. I've tried: - $

Re: Bug: Character sets and $r->custom_response

2008-05-23 Thread Clinton Gormley
> For now, I plan to just entity escape anything that isn't in the ASCII > range, but is there a workaround? Should this be fixed? For those looking for an easy workaround for this, this is what I've used: $output = Encode::encode('iso-8859-1',$output,Encode::FB_HTMLCREF); To explain: - $o

Bug: Character sets and $r->custom_response

2008-05-23 Thread Clinton Gormley
Hi all There seems to be a bug in the mod_perl2/apache2 handling of character sets for $r->custom_response(). I'm not sure which is at fault. My pages are all in UTF8, but I can't find a way to set this character set for custom generated error pages. I've tried: - $r->content_type('text/html;