`

Unicode 编码转换器

阅读更多
html代码

提示:可以先修改部分代码后再运行

ASP版本

ASP/Visual Basic代码
  1. <%
  2. functionhtmlunicode(str)
  3. dimj
  4. fori=1tolen(str)
  5. char=mid(str,i,1)
  6. j=ascw(char)
  7. ifj<0thenj=j+65536
  8. ifj>128then
  9. htmlunicode=htmlunicode&"&#"&j&";"
  10. else
  11. htmlunicode=htmlunicode&char
  12. endif
  13. next
  14. endFunction
  15. response.writehtmlunicode("蓝雨")
  16. %>
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics