[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PHPwestoz] Stràngê chàràctëres §§§



On Tue, 2005-02-15 at 21:49 +0800, Nicolas Connault wrote:
> Hi again!
> 
> I'm working on an I18n solution for my auction project, French-English. 
> However, French is full of funny chÃrÃctÃrs which get into the database 
> fine, but get output as basic characters when retrieved by PHP . . . 
> (like ch?r?ct?rs).
> 
> I've searched around a bit trying to find a solution, read some stuff 
> about unicode and utf-8, but nothing really encouraging when it came to 
> PHP. Anyone has some experience in that area?
> 

PHP itself is fully unicode compatible. To get the output to work you
need to add the correct encoding metadata headers to your html output.
the biggest problem you might have is if using the 3.x series of mysql
it doesnt support unicode so make sure its charset mangaling is disabled
and just treat the strings as you would any other binary data and it'll
be good

Adam