android webview 中的阿拉伯字体?
我们的网站 url 具有阿拉伯语语言,我们希望像在 android webview 中一样显示,但它的显示不正确,而是相反。你能帮助我吗????
We have site urls having arabic language we want to display as it is in android webview but it is not showing as correctly it is showing in reverse. Can you help me????
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
有一个简单的解决方案。由于正确的顺序字母以相反的顺序显示。为什么我们不写相反的字母呢?
此链接将帮助https://stackoverflow.com/a/13562693/1547539
There is a simple solution of it. As correct order letters display in reverse order. Why not we write reverse letters?
This link will help https://stackoverflow.com/a/13562693/1547539
只需设置编码:
YourWebView.loadData(YourContentHtml, "text/html; charset=UTF-8", null);
Just set the encoding :
YourWebView.loadData(YourContentHtml, "text/html; charset=UTF-8", null);
我完全理解你的问题,你的意思是:
恐怕这是不可能的,我已经看到一些帖子都确认不能同时完成。
另请参阅:Android中Webview的字体?
I fully understand your issue, you mean:
I am afraid this is not possible, I have seen some post around all confirm that can't be done in the mean time.
Also see: font face of Webview in Android?