For the mysql version 5.0 and higher , the encoding of data stored is given mysql query at the time of the request to read or write data. Therefore, if you do not specify the encoding type when connecting to a database , it uses the default encoding . All of our hosting servers default encoding UTF- 8. So if you're using on your website different encoding , you may face the problem of mapping data, that is, instead of the Cyrillic alphabet you will see the signs ? " ? " or other meaningless characters .
Methods of solutions :
1) to use UTF-8 encoding
2) if your script is setup , which indicate what encoding to use when connecting to a database , then set it correctly
3 ) If the settings are not , find a library that uses a script to connect to the database and add a line to set the encoding of data in the database . Line looks like this:
mysql_query ("set names cp1251");
where cp1251 - the encoding of data in your database
If you checked it out and pointed it right , but the problem persists, then please contact our tech. support. We will always help you with a solution to this problem.
Залишилися питання?
Якщо інструкції недостатньо, команда GoodNet допоможе з налаштуванням хостингу, домену, VPS або панелі керування.
© 2007 - 2026 GOODNET.UA Всі права захищені.
