html页面,如何让unicode编码,在浏览器中显示为中文

html-css012

html页面,如何让unicode编码,在浏览器中显示为中文,第1张

你好,登录方式以unicode编码显示是\u767b\u5f55\u65b9\u5f0f,在html页面是显示还是登录方式,把html的编码设置utf-8就可以了

<meta http-equiv="Content-Type" content="text/htmlcharset=utf-8" />

希望可以帮助到你

用js啊,

<script type='text/javascript'>

var a='\u263a'

document.write(a)

</script>

<%@ 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>