Re: Accented characters

steve <[email protected]>
Newsgroups gmane.comp.php.internationalization
Message-ID <[email protected]>
Okay. I'll make a last bid for help on this because, while people here have
been very patient and helpful, this actually isn't PHP-related.

To summarise: I have a page which has encoding set to iso-8859-1 in a meta
statement. This shows some text, pulled from a MySQL database, containing
accented characters. The MySQL table and the data it contains are identical
on both the live system (on shared hosting) and my local system. In both
cases, the MySQL server is set to use latin1.

I've just heard from the shared hosting company that its Apache 1.3 server
is set so that it has no default charset. The list of supported charsets
includes utf-8, but not specifically iso-8859-1 (ISO-8859-8, ISO-2022-JP,
ISO-2022-KR, ISO-8859-2, Big5, WINDOWS-1251, CP866, ISO-8859-5, KOI8-R,
UCS-2, UCS-4, UTF-8).

To make a comparison, I configured my local Apache 2 server the same way.

When I view the live page (www.webvivant.com/market/index.php), it renders
the characters correctly when viewed as iso-8859-1 (which is what the
browser defaults to as per the meta statement). It does not render
correctly when viewed as utf-8.

When I view the same page locally, it also comes down as iso-8859-1, but the
characters do not render correctly - instead each accented char appears as
two characters. When I switch the browser to utf-8, it renders correctly.

Huh?

-- 
@+
Steve

-- 
PHP Internationalization Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.