UTF-8 problem with Apache

From: Date: Tue, 07 Sep 2004 06:13:42 +0000
Subject: UTF-8 problem with Apache
Groups: php.i18n 
Request: Send a blank email to php-i18n+get-760@lists.php.net to get a copy of this message
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.

« previous php.i18n (#760) next »