一、采用ASP+WML的开发方法,并且利用GB2312编码(后缀为.asp)
<%Response.ContentType = "text/vnd.wap.wml" %>
<?xml version="1.0" encoding="gb2312"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapfourm.org/DTD/wml_1.1.xml">
<wml>
<card id="index" title="中文测试" newcontext="true">
<p align="center">
<img src="../common_ico/light.png" alt=""/>漂浮的记忆</p>
<p>本代码由BIKE网站提供。<br/>
<a title="确定" href="../index.asp">返回上级</a><br/>
<a title="确定" href="http://wap.165e.com">返回互动河北</a><br/>
<a title="确定" href="http://wap.uni-info.com.cn">返回首页</a><br/>
</p>
</card>
</wml>
二、采用ASP+WML的开发方法,并且利用UTF-8编码(后缀为.asp)
<%Response.ContentType = "text/vnd.wap.wml" ok=uni("确定") zongbu=uni("返回互动河北") top=uni("返回上级") homepage=uni("返回首页") bike=uni("漂浮的记忆") ceshi=uni("中文测试") %>
<?xml version="1.0" encoding="gb2312"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapfourm.org/DTD/wml_1.1.xml">
<wml>
<card id="index" title="<%=ceshi%>" newcontext="true">
<p align="center">
<img src="../common_ico/light.png" alt=""/><%=bike%></p>
<p>本代码由BIKE网站提供。<br/>
<a title="<%=ok%>" href="../index.asp"><%=top%></a><br/>
<a title="<%=ok%>" href="http://wap.165e.com"><%=zongbu%></a><br/>??<a title="<%=ok%>" href="http://wap.uni-info.com.cn"><%=homepage%></a><br/>?? </p>
</card>
</wml>
<% Function uni(Chinese) For i = 1 to Len (Chinese) a=Mid(Chinese, i, 1) uni=uni & "&#x" & Hex(Ascw(a)) & ";" next End Function %>