If instead of a website you see some hieroglyphic gibberish — you might have enabled a wrong character encoding system. You can change it in the .htaccess file.


How to change character encoding via .htaccess

      1. Log into cPanel
      2. On the dashboard, click on File manager.How to change character encoding via .htaccess - Image 1
      3. Go to the public_html folder.3
      4. By default, .htaccess is hidden. So click the Settings button and check the Show hidden files (dotfiles) mark.How to change character encoding via .htaccess - Image 3
      5. Now click on .htaccess and click EditHow to change character encoding via .htaccess - Image 4
      6. Add at the beginning of the file:
        AddDefaultCharset UTF-8 – if you want UTF-8 encoding
        AddDefaultCharset WINDOWS-1250 – if you want Windows-1250
      7. After you are done with the file, click on Save changes.How to change character encoding via .htaccess - Image 5

You also should check which encoding is being used in your database.

How to change the encoding in the database

      1. Log into cPanel.
      2. On the dashboard, under Databases, click on phpMyAdmin.How to change character encoding via .htaccess - Image 6
      3. Click on your website’s database to the left.e343b87876
      4. Click on Operations.
      5. Under Collation, select the encoding you are using on the website.0f71b6cb53
      6. Click Go.

Now clean your browser’s cache by pressing Ctrl+F5 and check whether your website is displayed correctly.