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.
The setting controls the charset header, which tells the browser the encoding in which to display the site.
  1. Open the "Hosting → My sites → your sitePHP settings" section.
  2. In the "Encoding (default_charset)" field, select the desired encoding and save the changes:
  3. 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 the text is still not displaying correctly on the site, the possible options depend on where exactly that text is stored:

Content