比如
File f1= new File("中国.txt");
String str= new String(f1.getName().getBytes("ISO-8859-1"),"GBK")我在 android 系统里str读出来的 都是乱码, GBK和 utf-8 我都试过了,都是乱码,望各位大虾帮助File f1= new File("中国.txt");
String str= new String(f1.getName().getBytes(),"GBK") 也是乱码,String str= new String(f1.getName().getBytes(),"utf-8")也是乱码求教
File f1= new File("中国.txt");
String str= new String(f1.getName().getBytes("ISO-8859-1"),"GBK")我在 android 系统里str读出来的 都是乱码, GBK和 utf-8 我都试过了,都是乱码,望各位大虾帮助File f1= new File("中国.txt");
String str= new String(f1.getName().getBytes(),"GBK") 也是乱码,String str= new String(f1.getName().getBytes(),"utf-8")也是乱码求教
解决方案 »
- Android 从长按Home启动 和 从列表启动的问题
- 得到时间值最大的图,在线等
- listview关联sqlite db无法正确显示的问题
- 相对布局显示的问题..求指导求教育...
- 显示视频流除了用bitmap接口,还可以用什么做显示?
- Android 平台下timepicker 的用法,求各位指教小弟。
- listview 问题
- 如何获取三星公司某一款手机的android源码
- 类似淘宝购物时,尺寸,颜色选择的radiobutton样式,android总怎么实现
- 使用SharedPreferences访问其他文件中的资源TextView报空指针错误
- android 2.2 系统单线程最大内存分配是多少?
- 多屏幕选择中的滑屏效果是怎么实现的?
Linux下编写的一般都不会乱码。