
ASP代码中,如何将一个变量值转成UTF-8的编码
请问我的一个ASP页面,内容如下:<%mobile=Request("mobile")content=Request("content")%><iframeborder=...
请问
我的一个ASP页面,内容如下:
<%
mobile=Request("mobile")
content=Request("content")
%>
<iframe border=0 name=main src=sendsms.jsp?mobiles=<%=mobile%>&content=<%=content%>' width=200 height=50></iframe>
因为iframe 里的content=要求必须是UTF-8编码的,所以,请问
如何将content=request("content")这个content变量转为UTF-8的字符呢?? 展开
我的一个ASP页面,内容如下:
<%
mobile=Request("mobile")
content=Request("content")
%>
<iframe border=0 name=main src=sendsms.jsp?mobiles=<%=mobile%>&content=<%=content%>' width=200 height=50></iframe>
因为iframe 里的content=要求必须是UTF-8编码的,所以,请问
如何将content=request("content")这个content变量转为UTF-8的字符呢?? 展开
2个回答
展开全部
<%
mobile=Request("mobile")
content=Request("content")
response.codepage=65001
content = Server.URLEncode(content)
%>
<iframe border=0 name=main src=sendsms.jsp?mobiles=<%=mobile%>&content=<%=content%>' width=200 height=50></iframe>
-------------------------------------------
mobile=Request("mobile")
content=Request("content")
response.codepage=65001
content = Server.URLEncode(content)
%>
<iframe border=0 name=main src=sendsms.jsp?mobiles=<%=mobile%>&content=<%=content%>' width=200 height=50></iframe>
-------------------------------------------
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询