asp request utf-8转码函数
2021-04-08 11:25
标签:ext asp har stream col server obj pen charset asp request utf-8转码函数 asp request utf-8转码函数 标签:ext asp har stream col server obj pen charset 原文地址:https://www.cnblogs.com/landv/p/12462380.htmlFunction utf2gb(Body)
Dim Objstream
Set Objstream = Server.CreateObject("adodb.stream")
objstream.Charset = "gb2312"
objstream.Type = 2
objstream.Mode =3
objstream.Open
objstream.WriteText body
objstream.Position = 0
objstream.Charset = "utf-8"
objstream.Type = 2
utf2gb = objstream.ReadText
objstream.Close
set objstream = nothing
End Function
上一篇:网站建设关于域名的问题有哪些
下一篇:企业如何选择网站建设公司
文章标题:asp request utf-8转码函数
文章链接:http://soscw.com/index.php/essay/72838.html