Re: Content type & charset header in pearweb
| From: | Martin Jansen | Date: | Fri, 26 Jul 2002 17:52:46 +0000 |
| Subject: | Re: Content type & charset header in pearweb | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-8029@lists.php.net to get a copy of this message | ||
On Fri Jul 26, 2002 at 03:5229PM +0200, Pierre-Alain Joye wrote:
> Actually try to include a charset header in the current pearweb site. We need it for the new
> translation of the weekly news in polish.
>
> A problem occurs when we need others charset than will not be recognized by the browser. We
> must send the correct charset header, pear-prepend.php will certainly be the best place to do it.
>
> Is there a common way in pearweb to define the langage actually requested ?
>
> Certainly something like used in the manual section of pear.php.net (but I do not find where it
> is :) ); a common sendSiteHeaders can do it.
ATM we are sending the charset header in pear-format-html.php. If you
need another charset than the defaultish one, please call heaer() from
the script that needs it in order to overwrite the original charset
(currently being iso-8859-1). You just need to take care that header()
is called before commonHeader().
--
- Martin Martin Jansen
http://martinjansen.com/