|
|
 |
Re: FN-FORUM: PHP and Special Characters
date posted 20th March 2006 23:40
>> What's the input and what's the output?
>
> The input is those characters and the output is just a bunch of question
> marks.
I meant what format is the input? UTF-8? From a database? From user input?
What format is the output? Windows-1252, ISO-8859-1?
It's a character encoding issue, somewhere your UTF-8 or similar is being
translated into something with fewer glyphs, such as latin-1 - the
question marks are inserted for characters that don't map into the smaller
character set. If you can keep UTF-8 all the way through it'll work OK.
All my web sites and databases use UTF-8 all the time, and it works fine
with PHP.
Anthony
--
www.fonant.com - hand-crafted web sites
|
 |
|