更改XML编码

更改XML编码,xml,asp-classic,character-encoding,Xml,Asp Classic,Character Encoding,在asp而不是asp.net中,如何将XML编码从UTF-16更改为UTF-8 我的代码将xml写入字符串,然后使用 Response.ContentType = "text/xml" response .write xmlstring 但是编码总是使用UTF-16,并且会漏掉一些单词 提前感谢您必须配置响应对象,以便它输出UTF-8数据: Response.Charset = "utf-8" Response.CodePage = 65001

在asp而不是asp.net中,如何将XML编码从UTF-16更改为UTF-8 我的代码将xml写入字符串,然后使用

Response.ContentType = "text/xml"
response .write xmlstring
但是编码总是使用UTF-16,并且会漏掉一些单词


提前感谢

您必须配置
响应
对象,以便它输出
UTF-8
数据:

Response.Charset = "utf-8"
Response.CodePage = 65001