简体   繁体   English

尝试以其他语言从sdcard读取文本文件

[英]Try to read text file from sdcard in other language

I try to read text file (file.txt) from SDcard and make string for Textview. 我尝试从SDcard读取文本文件(file.txt),并为Textview创建字符串。 so i found this and every things works fine but when i changed language in text file , result is some question marks and not words .how can i fix this problem? 所以我发现了这一点,并且一切正常,但是当我在文本文件中更改语言时,结果是一些问号而不是单词。如何解决此问题?

I had this problem too. 我也有这个问题。 this error fixed when you saved your .txt file as UTF-8 Unicode , not ANSI. 当您将.txt文件保存为UTF-8 Unicode而不是ANSI时,此错误已修复。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM