I am using $encoding = 'utf-8'; in gettext and in my html code i have set <meta charset="utf-8">. I have also set utf-8 in my .po files, but I still get � when I write æøå! What can be wrong?
I am using $encoding = ‘utf-8’; in gettext and in my html code i
Share
Let’s see how the values you mention are at the byte level.
I copied the
æøåfrom your question and�from your title. The reason for�is that I had to use a Windows console application to fetch the title of your question and its codepage was Windows 1252 (copying from the browser gave meUnicode Character 'REPLACEMENT CHARACTER' (U+FFFD)).In a script encoded in UTF-8, this gives:
So the byte representation matches. The problem here is that when you write
æøåeither: