首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 移动开发 > 移动开发 >

gb2312 变换 UTF-8 出现?号

2012-08-31 
gb2312 转换 UTF-8 出现?号String message 一条 最新 赠送 。!message new String(message.getBytes

gb2312 转换 UTF-8 出现?号
String message = "一条 最新 赠送 。!";
message = new String(message.getBytes("utf-8"));
System.out.println(message);

我转出来是 “涓?潯 鏈?柊銆?禒閫併?銆傦紒”
请问,为什么转换的时候出现问号,正确的应该怎么转呢?

热点排行