我的应用程序有问题,该应用程序是我用 cordova apache 和 angularjs 制作的。问题是,国际重音标记和变音符号显示不正确。 “à”所有其他 Html 代码正确显示时出现问题!
当我显示以下文本时:
C'est tout à fait juste.
结果是这样的:
C'est toutagrave; fait juste.
但它应该是这样的:
C'est tout à fait juste.
只是à有问题!
这是我的代码:
<div class="learnBox" ng-show="view.learnData.VisibleSetting.ShowQuestion" ng-bind-html="view.learnData.Card.FrontText | unsafe"></div>
在 app.js 中我有:
app.filter('unsafe', function ($sce) {
return $sce.trustAsHtml;
});
有人知道这个问题吗?我该如何解决这个问题?
谢谢
最佳答案
不同之处在于您在 '
中使用 UNICODE HTML
但是您在 à
中使用 html
如果 UNICODE 运行良好,请使用 à
而不是 à
关于javascript - angularjs 不显示国际重音符号和变音符号,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36329135/