当前位置:首页 >> 网络编程

如何用htmlEncode来显示Unicode?

如何用htmlEncode来显示Unicode?

<%@ Language=VBScript %>
<html>
<head>
<title>千花飞舞之UNICODE编码</title>
</head>
<body>
<%
Dim strU
dim strNormal
strU= ChrW(7913)
strNormalANSI= "aiN"
%>

<font face="arial" size=+1>
<P>An ANSI value: <%=strNormalANSI%>
<P>An htmlencoded String: <%=Server.htmlEncode(strU)%>
</font>