String news = new String(testString.getBytes("ISO8859_1"), "GBK");
对于地址栏汉字乱码可用:
java.net.URLDecoder.decode("汉字") 解决
字符编码的转换
原创
©著作权归作者所有:来自51CTO博客作者sunxboy的原创作品,请联系作者获取转载授权,否则将追究法律责任
上一篇:用存储过程重置序列-oracle
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
Java设置JSON字符串参数编码
本文详细介绍了如何在Java中创建JSON字符串以及在Java中设置JSON字符串参数编码的方法。
json 字符串 JSON Java -
工具-字符编码转换
整理出来两个好用的 绿色 字符编码转换软件,分享给大家使用,如下:一、超级批量编码转换(UltraC求互相转换2.对DOS...
字符编码转换 字符转换 编码转换 ico 拖拽 -
javascript字符编码转换方法
javascript字符编码转换方法
职场 JavaScript 休闲 javascript字符编码转换方法