mp2: how to take out the default charset append?

[prev] [thread] [next] [Date index for 2005/04/21]

From: Foo Ji-Haw
Subject: mp2: how to take out the default charset append?
Date: 02:36 on 21 Apr 2005
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");
>

Re: mp2: who is responsible for setting charset?
Markus Wichitill 17:06 on 20 Apr 2005

mp2: how to take out the default charset append?
Foo Ji-Haw 02:36 on 21 Apr 2005

Re: how to take out the default charset append?
Carl Johnstone 14:08 on 22 Apr 2005

Generated at 09:30 on 27 Apr 2005 by mariachi v0.52