【问题标题】:How to Display full Latin-1 character set (ISO-8859-1) in android textview?如何在 android textview 中显示完整的 Latin-1 字符集(ISO-8859-1)?
【发布时间】:2014-06-26 10:36:20
【问题描述】:

任何人都可以,如何在 android textview 中显示完整的 Latin-1 字符集 (ISO-8859-1)

【问题讨论】:

  • 你能贴一些代码吗?
  • 我有一个来自服务器的文本,我想在 Android TextView 中显示该文本

标签: android android-layout android-activity android-fragments textview


【解决方案1】:

试试这个方法,希望能帮助你解决问题。

mIn = new BufferedReader(new InputStreamReader(mSocket.getInputStream(),"ISO-8859-1"));

这样,所有从Latin-1服务器传入的字符串都将被正确解码,并完美显示在android TextViews上

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-11-09
    • 2013-01-19
    • 1970-01-01
    • 2011-05-12
    • 2015-12-30
    • 1970-01-01
    相关资源
    最近更新 更多