我正在开发 Android 应用程序并展示
菲律宾比索以 UTF 8 签名
显示了,但是显示为P,只有一行而不是两行(₱),如何解决?
谢谢
更新:
目前在 string.xml 中使用\u20B1,在 java 中使用 setText,
但仍然只有一行。我需要像下面这样的东西吗:
String name = "";
try {
name = new String(c.getString("NAME").getBytes("ISO-8859-1"), "UTF-8");
} catch (UnsupportedEncodingException e) {
e.printStackTrace();
}
String decodedName = Html.fromHtml(name).toString();
再次感谢您的帮助
最佳答案
我不确定您现在如何实现它。但是,据我所知,请确保您使用正确的字符:U+20B1
以下是一些帮助链接:
http://graphemica.com/%E2%82%B1 http://www.fileformat.info/info/unicode/char/20b1/index.htm
关于android - 菲律宾元(比索)符号 ₱ 在 Android 中显示不正确,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29505481/