Re: UTF-8 problem with Apache
| From: | Rasmus Lerdorf | Date: | Tue, 07 Sep 2004 06:55:40 +0000 |
| Subject: | Re: UTF-8 problem with Apache | ||
| References: | 1 | Groups: | php.i18n |
| Request: | Send a blank email to php-i18n+get-761@lists.php.net to get a copy of this message | ||
Which content-type is being sent?
For PHP generated content, you can set this using default_charset in your
php.ini file.
-Rasmus
On Mon, 6 Sep 2004, Ian Eure wrote:
> I'm about to start on a project which will be translated into several
> languages; English, French, German, Spanish, and Japanese. Because of these
> requirements, I'm using UTF-8 for all languages.
>
> Unfortunately, I'm having some problems with multibyte characters; they show
> up as question marks when viewing a page.
>
> I'm not sure why this is happening. Sniffing the HTTP response shows that
> the characters are literal ASCII question marks.
>
> Further testing seems to indicate that this is an Apache issue; running the
> same stuff with the PHP binary from a Unicode-aware XTerm works fine. I set
> AddDefaultCharset to utf-8 in my httpd.conf, but that didn't work.
>
>
> I have observed identical behavior with:
>
> Debian sarge (current as of right now)
> PHP 4.3.8-9
> Apache 1.3.31-5
>
> Debian woody
> PHP 4.1.2-7.0.1
> Apache 1.3.26-0woody5
>
> Does anyone know what's wrong here?
>
> --
> Ian Eure
> Lead Developer,
> WebSprockets, LLC.
>
> --
> PHP Internationalization Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>