Hallo Markus,

Thanks for the tip. I really needed to get that off.

Please help me with one more related question: if I am to simply use $r->content_type('text/html'), the final render to the client comes with ';charset=8859-1' appended to the header. Is this the result of Apache, or mod_perl? Is there any way I can just render Content-Type: text/html without a character set in the header?

Markus Wichitill wrote:

JH Foo wrote:

I have a need to set the charset in the header from the default 8859-1 to UTF-8. In CGI I simply set the header method($q->header(-charset=>'utf8');
Can anyone tell me the modperl equivalent, possibly with the Apache2::RequestRec or Apache::Request object?


$r->content_type("text/html; charset=$charset");

Reply via email to