PHP: Cyrillic characters not displayed correctly

Recently I switched hosting from one provider to the other and I have problems displaying Cyrillic characters. The characters which are read from the database are displayed correctly, but characters which are hardcoded in the php file aren't (they are displayed as question marks).

The files which contain the php source code are saved in utf-8 form. Help anybody?


  • It had something to do with the encoding of the php files. The files were created using Windows Notepad and saved with utf-8 encoding.

    When I used Notepad2 to open the files, the encoding of the files was "utf-8 with signature". When I changed encoding to "utf-8", the text displayed correctly.