ganjan
ganjan

Reputation: 7596

Getting special characters with gettext

I am using gettext to translate my site. In norwegian I need to use the charaters æøå, but they show up blank. I have set the $encoding = 'iso-8859-1';from wikipedia it says that æøå should be available, but as I said they show up blank. In poedit settings and my po/mo file I have set encoding to iso-8859-1.

ps. I want to support all langauges in the future so I would like to use the "best" encoding with the most characters so I don't need to change my code in the future to support new languages.

Upvotes: 0

Views: 1070

Answers (1)

NinjaCat
NinjaCat

Reputation: 10204

Based on your last comment, you could switch to using UTF-8. That will solve both of your problems...

Upvotes: 2

Related Questions