显示中文字符如何使用response.write在ASP中显示中文字符?如何在传统ASP中使用response.write
<%
Response.CodePage=51936
Response.Charset="UTF-8"
Response.ContentType = "text/html"
Dim Msg
Msg="简"
%>
<%Response.Write Msg%>
显示中文字符如何使用response.write在ASP中显示中文字符?如何在传统ASP中使用response.write
<%
Response.CodePage=51936
Response.Charset="UTF-8"
Response.ContentType = "text/html"
Dim Msg
Msg="简"
%>
<%Response.Write Msg%>
Codepage 51936是EUC-CN。不是UTF-8,即65001.
Response.Write总是发出非中文字符,无论代码页设置如何 – TrustyCoder
文本编辑器的编码是什么?整个工具链必须使用相同的编码... – dda
我使用的是没有BOM的UTF编码。是否所有的页面都有相同的编码。实际上,我正在做的是定义需要在单个页面中翻译并将它们包含在其他页面中。其他页面可能有不同的编码。 – TrustyCoder
尝试'Response.CodePage = 65001' – Esailija