Knowledge base
1000 FAQs, 500 tutorials and explanatory videos. Here, there are only solutions!
Solve a tank problem when connecting to the database
The settings of the MySQL server force to use UTF-8 by default.
If you need to define the storage in Latin e.g., add the following lines in the PHP section of your query:
mysql_query("SETCHARACTER SET latin1");
On the old accommodation formulas, force MySQL connection in Latin1 via file .htaccess located at the root of your accommodation:
php_value mysql.connect_charset latin1
php_value mysqli.connect_charset latin1
php_value pdo_mysql.connect_charset latin1
Current offers, place the following code in a file . user.ini located at the root of your accommodation:
mysql.connect_charset = "latin1"
mysqli.connect_charset = "latin1"
pdo_mysql.connect_charset = "latin1"
Link to this FAQ: