I have a small problem, I'm using a .php page to show Russian characters. Now, I do this in two different ways. The text I take from the database shows fine, but if I show text like this
<h2>привет </h2>
it doesn't show it at all. One thing worth mentioning is that I include my navigation file require_once "navigation.php"
where I declare all the meta data etc.
So from navigation.php:
<meta charset="Cyrillic(Windows-1251)">
Solutions I've tried so far:
- Adding encoding to .htaccess
- Using php to output header encoding
- Using Cyrillic(Windows-1251), UTF8, UTF16, iso-8859-5
- Saving the file itself as UTF8
And I'm out of ideas. What I don't understand is how echoing the text from database works, but the HTML version doesn't.