This is my interactive space where I will share with you some elements of my life.
Ceci est mon espace interactive ou je partagerai avec vous certains moments de ma vie.
Monday, 30 July 2007
Characters encoding in HTML / PHP
In some cases, you could try whatever you like, it is impossible to change the default character encoding selection of a page. Why ? After almost 1h, I found out that the problem lies on the configuration of PHP, in the php.ini file where the default encoding character set was set to a different to the one I wanted to use.
To solve the problem, I have created a .htaccess file with the following line:
php_value default_charset "iso-8859-1"
This force the encoding to be iso=8859-1 when loading the PHP pages. I hope this might help you!