Re: Accented characters
| From: | steve | Date: | Sat, 20 Nov 2004 13:56:53 +0000 |
| Subject: | Re: Accented characters | ||
| References: | 1 2 3 4 5 6 | Groups: | php.i18n |
| Request: | Send a blank email to php-i18n+get-805@lists.php.net to get a copy of this message | ||
David Powers wrote:
> steve wrote:
>> So it looks as though the shared hosting service
>> might also have utf-8 set - which would surprise me because Apache
>> defaults to iso-8859-1 and the hosting firm has opted for defaults in
>> most cases.
>
> Apache 2 defaults to utf-8.
The shared hosting server is Apache 1.3.
Apache 2 is also somewhat confusing in the mod_mime-defaults.conf file
which, as it came installed on the SuSE distro, strongly suggests the
default is iso-8859-1.
I've now determined that the shared host MySQL server is using latin1 (I
managed to ssh into it and used myisamchk). My local MySQL server is the
same. I dumped the db table from the live server and uploaded it to my
local one just to double-check I'm using the same data. Using the same
browser, the accents work fine viewing the page delivered by my local
server as utf-8, but are buggered when delivered as iso-8859-1 (ie, when I
change the Apache AddDefaultCharset setting). From the shared host server,
it's the other way around - the accents are fine when the page is viewed as
iso-8859-1 - don't work as utf-8.
Unfortunately, the hosting company's first response to me question about
what encoding is used on their Apache set-up was little better than 'huh?'.
So I've fired off a somewhat more detailed query.
--
@+
Steve