简体   繁体   中英

Encoding issue for file.listFiles() on chinese folders

I made a research to find similar issues with wrong file name for chinese folders but without luck. API call listFiles call on file return list of files with unrecognized symbols in file path for chinese symbols. The interesting point is for some files chinese symbols are recognized, bit for others are not. Below is the sample:

http://pastebin.com/2esW80BJ

Do you have an idea why it happens? Behind the scene listFiles should use UTF-8 which should be properly handle Chinese chars. It does, but for some cases there are unrecognized symbols.

就我而言,这是作为输入的垃圾-具有不同的型号,昨天晚上没有注意到差异

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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