Home > concrete5 for developers > utf-8 encoding problem in Firefox

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 Tags:
  1. Björn Kähler
    September 22nd, 2011 at 23:18 | #1

    Thanks! You made my day! 🙂
    I tried a lot of fixes I’ve found on google, but this finally made it! 😀

  1. No trackbacks yet.