You have built your site in UTF-8 encoding and the database is also configured in UTF-8 (and it is displayed properly), but the iste itself displays incorrect encoding of cyrillic characters.

The problem is that the site can connect to the data base with cp1251 encoding, but data base can’t render data in this encoding as it is configured in UTF-8 and is not displayed properly on the site. To solve this problem, it is necessary to fix the script so that connection to the data base proceeds in UTF-8 encoding (set names utf8).

N.B.: Problem with encoding in data base (for example, while registering on a site, Cyrillic characters in the database are not displayed correctly) can also be solved this way.

Tagged:

Leave a Reply

Your email address will not be published. Required fields are marked *