Tag: 转码预览模式: 普通 | 列表
09-07
07

url编码转码

发送:
response.sendRedirect("xx.jsp?"+java.net.URLEncoder.encode("xxx"));  
    
接收:  
String   strValue   =   java.net.URLDecoder.decode(request.getParameter("xxx")+"");

查看更多...

Tags: encode decode url 转码

分类:学习 | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 287
07-11
08

GB2312与UTF-8之间转码后的文字乱码问题

<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
改为UTF-8,页面文字出现乱码,解决方案:
引用内容 引用内容
UTF-8与GB2312互转方法


第一步:修改 commond.asp 文件,将文件的前4行,也就是 '定义 Cookie,Application 域 前面的代码用以下代码替换:

<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<%

查看更多...

Tags: 转码 乱码

分类:Css&Ps | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 1213