码迷,mamicode.com
首页 > 其他好文 > 详细

旁门左道

时间:2018-09-15 23:18:43      阅读:186      评论:0      收藏:0      [点我收藏+]

标签:style   mes   sage   pst   translate   iso   ESS   字符串   bsp   

输出一个某种编码的字符串?

public StringTranslate(String str){
String tempStr="";
try{
tempStr=new String(str.getbytes("ISO-8859-1"),"GBK");
tempStr=tempStr.trim();
}catch{
System.out.println(e.getMessage());
}
}
return tempStr;

 

旁门左道

标签:style   mes   sage   pst   translate   iso   ESS   字符串   bsp   

原文地址:https://www.cnblogs.com/Su-feng-address/p/9652677.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!