html代码
提示:可以先修改部分代码后再运行
ASP版本
ASP/Visual Basic代码
- <%
- function htmlunicode(str)
- dim j
- for i = 1 to len(str)
- char = mid(str, i, 1)
- j=ascw(char)
- if j<0 then j=j+65536
- if j > 128 then
- htmlunicode = htmlunicode & "&#" & j & ";"
- else
- htmlunicode = htmlunicode & char
- end if
- next
- end Function
- response.write htmlunicode("蓝雨")
- %>
本文介绍了一个简单的Unicode编码转换工具,包括从ASCII到Unicode及反向转换的功能,并提供了HTML页面实现和ASP/VisualBasic代码示例。
852

被折叠的 条评论
为什么被折叠?



