j2me中文显示问题

来源:互联网 发布:阿里云2核4g价格 编辑:程序博客网 时间:2024/05/22 18:22

主要是在通讯当中,纯属个人日记

String tmpdec = System

.getProperty("microedition.encoding");

String tmpstr2 = new String(res);//res为输入BYTE[]

String tmpout=new String(tmpstr2.getBytes(tmpdec),"utf-8");//UTF-8 为输入字符串的编码

原创粉丝点击