Manage cookies that are used for advertising, such as ad personalization, remarketing, and ad effectiveness analysis.
2.8.28. Site encoding
Notes:
- We recommend using the standard UTF-8 encoding.
- For OpenLiteSpeed, use the method for selecting the encoding via the control panel.
Change
The setting controls the
charset header, which tells the browser the encoding in which to display the site.
- Open the "Hosting → My sites → your site → PHP settings" section.
- In the "Encoding (default_charset)" field, select the desired encoding and save the changes:

- Wait 10-15 minutes for the changes to take effect.
If the desired encoding is not available in the control panel, select "Do not bind encoding". After that, in site root directory, create a file .htaccess and add the
AddDefaultCharset directive to it with the desired encoding.
Example:
AddDefaultCharset cp1251
If selecting encoding did not help
If the text is still not displaying correctly on the site, the possible options depend on where exactly that text is stored:
- In files — try changing the encoding using any FTP client and a specialized text editor (e.g. Notepad++).
- In database — try to explicitly specify the correct encoding in the database connection script (see Wrong encoding when outputting data from database).