Wordpress西里尔语编码

So i created a wordpress theme and the cyrillic characters in my .php files are not displayed correctly (for example front-page.php). I tried to change my php.ini file as following:

;default_charset = "UTF8"
;mssql.charset = "UTF8"

and the charset in the header.php:

<meta charset="<?php bloginfo( 'charset' ); ?>">

//which should return utf8 as written in wordpress codex.

But it didnt work. I created another file index1.php in my theme directory. And when i preview it the text in cyrillic is shown properly. And I think that the problem is with Wordpress (because otherwise everything is fine). My WP database is with utf8_general_ci. I am using wamp, localhost, Wordpress - 3.6.1

Thank you in advance!

Try create .htaccess in root with content:

AddDefaultCharset utf-8

and check, please, encoding of your template files, maybe you creates template in other encoding, not utf-8.

Glory be to God! Finally it is solved.

I used Notepad++ and i should only go to the menu above Encoding-->Convert to UTF-8 without BOM. (I think only UTF-8 does the same thing.) You'd better go to Settings--->New Document/Default Directory---> Encoding and choose UTF-8 (or UTF-8 without BOM) and save these settings.

This is important! Be sure that your files are UTF-8.