您的位置:首页 > 编程语言 > Java开发

关于java乱码的一些整理

2014-08-11 13:37 176 查看
1:customer.setName(new String(customer.getName().getBytes("ISO-8859-1"),"UTF-8")); 

 (<input type="text" class="inp2" name="customer.name" url="customer!validate" tip="只允许[2-50]个[中文|英文|数字]字符"/><font class="red marLef">*</font>)

 

 

2:customer.setIntention(java.net.URLDecoder.decode(customer.getIntention(), "UTF-8")); 

(正常走action)

3:function CustomerIntention(intention) {
var inten= encodeURI(encodeURI(intention));
window.location.href="crm/track?customer.intention="+inten;
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: