我正在使用 gettext 来翻译我的网站。在挪威语中,我需要使用字符 æøå,但它们显示为空白。我已经从 $encoding = 'iso-8859-1'; >wikipedia 它说 æøå 应该可用,但正如我所说,它们显示为空白。在 poedit 设置和我的 po/mo 文件中,我已将编码设置为 iso-8859-1。
附:我希望将来支持所有语言,因此我想使用最多字符的“最佳”编码,这样我将来就不需要更改代码来支持新语言。
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.
发布评论
评论(1)
根据您最后的评论,您可以切换到使用 UTF-8。这将解决你的两个问题......
Based on your last comment, you could switch to using UTF-8. That will solve both of your problems...