【问题标题】:ngx-translate special chars issuengx-translate 特殊字符问题
【发布时间】:2017-09-05 09:30:30
【问题描述】:

在我的 Angular 4 项目中,我使用的是 ngx-translate。 我对像 à 这样的特殊字符有疑问,我只看到一个?。 我需要使用特定的东西来翻译特殊字符吗? 我的项目是 utf-8

【问题讨论】:

  • 语言文件应该是utf-8,它很容易修复你可以在记事本中打开你的语言文件,同时选择编码为utf-8。

标签: angular ng2-translate ngx-translate


【解决方案1】:

语言文件应该有 UTF-8 编码,如果你这样做应该可以正常工作。 使用记事本有一种简单的方法,您可以随心所欲地进行操作。

1. Open the file in notepad
2. Click on save as 
3. Select encoding as UTF-8

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2011-04-19
    • 1970-01-01
    • 2012-04-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多