utf-8 encoding problem in Firefox
Recently I faced with the following problem in Firefox 3.0.8. I prepared a website in Russian language, using concrete5 cms. I didn’t change the default encoding which was UTF-8. But what a strange behavior from Firefox: it correctly detected the encoding only from time to time. I opened the page once – the text was incorrectly displayed, refreshed the page – the text turned to be readable, refreshed more – unreadable again. Really strange, don’t you think so?
I managed to fix the problem by editing index.php in root concrete5 folder, just add the following line of code before the last line:
header("Content-Type: text/html;charset=utf-8");
Categories: concrete5 for developers
Thanks! You made my day! 🙂
I tried a lot of fixes I’ve found on google, but this finally made it! 😀