使用 android 加载希伯来语 rss 时显示反数...
我正在使用 eclipse android 环境加载带有 xml Dom 的希伯来语 (rtl) xml feed。
在 TextView 上显示提要时,文本可以,但数字显示相反,
例如:
如果提要 (XML) 包含 007,它将显示为 700。
I'm Loading an Hebrew (rtl) xml feed with xml Dom using eclipse android environment.
When displaying the feed on TextView text is OK but numbers Displaying inverse
for example :
if feed (XML) contain 007 it WILL displayed as 700..
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
我重新发布我自己的答案:
“尝试在 webkit 控件中呈现您的文本,只要 HTML 代码被适当标记,它的 RTL 支持就可以正常工作。”
希望对你也有帮助。
I'm re-posting my own answer:
"Try presenting your text in a webkit control, its RTL support works fine, as long as the HTML code is tagged appropriately."
Hope that helps you too.
Android 并不正式支持 RTL 语言。
看看这里: Android:RTL支持 - 从右到左的句子中嵌入数字(希伯来语)
Android doesn't officially support RTL languages.
Have a look here: Android: RTL support - digits embedded in a right to left sentence (Hebrew)
我没有足够的代表来回复@Vitalyb 答案的评论,但我已经使用了这个解决方案并且效果很好。你只需要使用一个 webview,并用 html 文本加载它。 Android 开发网站上有大量可用的代码示例。
I don't have enough rep to reply to the comments on @Vitalyb's answer, but I have used this solution and it works great. You just need to use a webview, and load it with html text. There are plenty of code samples available on the Android dev sites.
我的最终解决方案是:
添加 charset=utf-8
然后在 loadData 之前调用它。
我很高兴听到(轻)简单的解决方案,使用 TextView 而不是 WebView。
感谢
http://www.wave-site.com/
my final solution was:
add a charset=utf-8
then calling it just before loadData..
I will glad to hear about (light) simple solution then that,for using a TextView instead of WebView..
thanks
http://www.wave-site.com/