Steve,
The page looks to me to be a mix of encodings.
There is a euro character and an e-acute which are windows-1252.
(The euro is not in iso 8859-1, although many fonts will behave as if 8859-1
was 1252, so it looks ok.)

Then there are characters in front of the telephone numbers: "Ti??:"
I am not sure what was intended. I suspect somewhere along the way an
incorrect encoding conversion was performed. If it is coming from your
database, it may have been corrupted before it was stored. If you are lucky
the data in the database is ok, and the incorrect conversion is being
performed between the retrieval of the data and the inclusion in the web
page.

The way to debug this is to first recognize you have multiple components
(http, php, html, mysql, ...) containing or processing text, and text
processing always requires encoding to be taken into account.
So I would suggest embedding some non-ascii windows-1252 (iso 8859-1)
characters in your html template, php code, and mysql database. Then verify
how the characters appear when served. You may find that some are correct
and some are not. The ones that are not, will identify which components are
not in sync with the rest of the system.

Problems can have a number of causes: the encoding may be incorrectly
labeled, the wrong conversion can be performed, a conversion that should be
performed is not, or a conversion that should be performed is performed
twice.

An important clue is to consider the characters you embedded and how they
changed when they were corrupted. For example, if you embed the euro (128)
and it turns into 3 bytes, it is likely a 1252 to utf-8 conversion was
performed. If the bytes are the same, but the display is different, then the
data is being decoded as if it were another encoding. (ie treating 1252 as
utf-8 or vice versa).

Reviewing the characters in each component will help you narrow down where
the problem(s) reside.

Hth
tex


Tex Texin
Internationalization Architect,   Yahoo! Inc.
 
 

--
PHP Internationalization Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to