android视图中的法语字母显示问号 [英] french letters in android views show question marks
问题描述
我从utf8数据库读取数据,然后将其显示在列表视图中。
,但是当我在浏览器中手动获取xml时,数据库中有包含èéá字母的单词,它显示的很完美
I read data from an utf8 database then display it in a listview. but there are words in the database containing è é à á letters when I get the xml manually in the browser it shows up perfect
但是在列表视图中而是显示问号
but in the listview it shows question marks instead
如何为列表视图设置字符集为utf8?
还是还有其他解决方法?
how can I set the character set to utf8 for my listview? or is there another way around?
推荐答案
您应该仔细检查计算机上的文件编码。您的系统使用latin-1(iso-8859-1)还是utf-8吗?
You should double check your file encoding on your computer. Does your system use latin-1 (iso-8859-1) or utf-8 ?
在拉丁语1编码的文件中,在utf-8中声明xmlns的重音符看起来不错,但实际上并没有真正存储在utf-8中。
Accents can look good in a latin-1 encoded file declaring a xmlns in utf-8 but indeed there not really stored in utf-8.
税率,
斯特凡(Stéphane)
Salutations, Stéphane
这篇关于android视图中的法语字母显示问号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!