如何让unicode编码在html页面中显示为中文

admin 技术教程评论337

unicode编码显示是\u767b\u5f55\u65b9\u5f0f,在html页面显示把html的编码设置utf-8就可以了
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<script>
    document.write("\u767b\u5f55\u65b9\u5f0f") 
</script>

把这段代码放到<a></a>中间就可以了文章源自小虫博客-https://www.xczi.cn/jishu/81.html 文章源自小虫博客-https://www.xczi.cn/jishu/81.html

admin


  • ·版权声明·



    1、本站文章部分内容可能来源于网络,仅供大家学习与参考,如有侵权,请联系客服进行删除处理。
    2、本站一切资源不代表本站立场,并不代表本站赞同其观点和对其真实性负责。
    3、如有侵权请邮件admin@xczi.cn与我们联系处理。敬请谅解!


  • 转载请务必保留本文链接:如何让unicode编码在html页面中显示为中文-https://www.xczi.cn/jishu/81.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: