Knowledge base
1000 FAQs, 500 tutorials and explanatory videos. Here, there are only solutions!
Solve a charset issue when connecting to the database
The MySQL server parameters force the use of UTF-8
by default.
If you need to set the storage to Latin, for example, add the following lines in the PHP section of your request:
mysql_query("SETCHARACTER SET latin1");
For the old hosting plans, force the MySQL connection to latin1
via the .htaccess
file located at the root of your hosting:
php_value mysql.connect_charset latin1
php_value mysqli.connect_charset latin1
php_value pdo_mysql.connect_charset latin1
For current offers, place the following code in a user.ini
file located at the root of your hosting:
mysql.connect_charset = "latin1"
mysqli.connect_charset = "latin1"
pdo_mysql.connect_charset = "latin1"
Link to this FAQ: