【发布时间】:2013-10-11 00:32:54
【问题描述】:
我在 assets 文件夹中有一个 JSON 文件,其中包含一些带有西班牙字符的数据。
{
"fields": [
{
"name" : "NÚMERO DE REFERENCIA",
"type": "numeric"
},
{
"name" : "FECHA DE VENCIMIENTO",
"type": "date"
},
{
"name" : "MONTO",
"type": "money"
},
]
}
我阅读了第一个"name" : "NÚMERO DE REFERENCIA",使用:
BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(inputStream, "ISO-8859-1"));
但我得到了字符“Ò”。
我已经使用“ISO-8859-1”进行了测试,但更糟糕的是,我得到了一个“?”符号。
有人可以帮助我吗?
提前致谢
【问题讨论】:
标签: android eclipse character-encoding android-assets