Asp classic Unicode Hello世界页面
有人能给我一个简单的ASP脚本,生成一个Unicode网页吗?也许你可以用多种语言写Hello world 另外,如何将浮动转换为字符串,以便根据页面指向的国家生成“2.3”或“2,3”。ASP是否提供了这样做的功能 此外,如何将Asp classic Unicode Hello世界页面,asp-classic,Asp Classic,有人能给我一个简单的ASP脚本,生成一个Unicode网页吗?也许你可以用多种语言写Hello world 另外,如何将浮动转换为字符串,以便根据页面指向的国家生成“2.3”或“2,3”。ASP是否提供了这样做的功能 此外,如何将“ab”转换为“ab”等 谢谢 巴里Unicode: 创建真正的Unicode(utf-8)页面有两个部分。首先,您需要将数据输出为utf-8。要指示web服务器使用utf-8,请将此行放在asp文件的顶部 <% response.codepage = 6500
“ab”
转换为“ab”
等
谢谢
巴里Unicode:
创建真正的Unicode(utf-8)页面有两个部分。首先,您需要将数据输出为utf-8。要指示web服务器使用utf-8,请将此行放在asp文件的顶部
<%
response.codepage = 65001
response.charset = "utf-8" '//This information is intended for the browser.
%>
示例页面:
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<%
Session.LCID = 1053 'Swedish dateformat (and number format)
%>
<%
Server.HTMLEncode("A B") '//Will output A B
%>
<%
'//This page is encoded as utf-8
response.codepage = 65001
response.charset = "utf-8"
'//We use the swedish locale so that dates and numbers display nicely
Session.LCID = 1053 '//Swedish
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body>
<%
Server.HTMLEncode("Hello world!") '//English
Server.HTMLEncode("Hej världen!") '//Swedish
Server.HTMLEncode("Γεια σου κόσμε!") '//Greek
Server.HTMLEncode("!سلام دنیا") '//Persian
%>
</body>
</html>