Yes!


----- Original Message ----
> From: André Warnier <a...@ice-sa.com>
> To: mod_perl list <modperl@perl.apache.org>
> Sent: Sat, May 28, 2011 8:23:34 AM
> Subject: How to set Content-type properly
> 
> Hi.
> 
> I am using :
> Apache/2.2.9 (Debian) DAV/2 SVN/1.5.1 mod_jk/1.2.26  PHP/5.2.6-1+lenny9 with 
>Suhosin-Patch mod_ssl/2.2.9 OpenSSL/0.9.8g  mod_apreq2-20051231/2.6.0 
>mod_perl/2.0.4 Perl/v5.10.0
> 
> In a  PerlResponseHandler, I am using Template-Toolkit to generate html pages 
>sent  back to the browser.
> Before rendering a template, I set the response  Content-type header, as :
> 
> $r->content_type('text/html');
> 
> This  results in a HTTP response to the browser, with the following header  :
> 
> Content-Type:    text/html
> 
> However, I would like  this :
> 
> Content-Type:    text/html;  charset=UTF-8
> 
> How do I do that  ?
> 
> is
> 
> $r->content_type('text/html;  charset=UTF-8');
> 
> admissible ?
> 
> 
> 
>

Reply via email to