如题
大家帮帮忙啊。。在线等
大家帮帮忙啊。。在线等
解决方案 »
- java.sql.SQLException: Io 异常: The Network Adapter could not establish the connec
- webservices菜鸟求教
- org.springframework.orm.hibernate3.HibernateSystemException: IllegalArgumentExce
- 再次请教高手:如何将jsp页面提交的数据直接生成服务器断的xml文件
- 在查询语句的问题?
- maven 新建项目报错
- 高手帮我看看这个错误,谢谢拉先
- weblogic做为服务器,页面显示很慢,这是什么原因啊??---送分~~
- 这样的问题如何解决呀,回答就有分,郁闷,谁来帮我----谢谢先!
- 向数据库Access中存储中文数据时,要对字符串如何转变!变成GB2312还是ISO-8895-1,还是其他呢?
- 怎样在Java中调用finereport报表
- 是数据,不是标签,怎么才能输出?
str = new String(info.getBytes("某種編碼"),"gb2312")
其中某種編碼是你現在用的那個。
試試看行不行。
System.out.println(c);
可以考虑使用字符数组。
str=str.substring(2);
char c=(char)Integer.parseInt(str, 16);
System.out.println(c);
int end = 0;
StringBuffer buffer = new StringBuffer();
while(start> -1){
end = str.indexOf("\\u",start +2);
String charStr = "";
if(end == -1){
charStr = str.substring(start + 2, str.length());
}else{
charStr = str.substring(start + 2,end);
}
char letter = (char)Integer.parseInt(charStr,16);
buffer.append(new Character(letter).toString());
start = end;
}
return buffer.toString();
System.out.println('\u9adf');
System.out.println((char)Integer.parseInt("9adf",16));
尤其是bigc2001 和 xingqiliudehuanghun
虽然没有能给你们分。。但是依然衷心的感谢你们。