asp request utf-8转码函数

Function 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

 

相关文章:

  • 2021-06-24
  • 2021-11-30
  • 2021-06-09
  • 2022-03-09
  • 2022-12-23
  • 2022-12-23
  • 2021-05-23
  • 2021-07-05
猜你喜欢
  • 2021-08-15
  • 2022-12-23
  • 2021-11-14
  • 2022-02-16
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案