BytesToBstr获取的源码转换为中文的代码
BytesToBstr获取的源码转换为中文的代码
发布时间:2016-12-29 来源:查字典编辑
摘要:'=================================================='函数名:BytesToBstr'作用...

'==================================================

'函数名:BytesToBstr

'作用:将获取的源码转换为中文

'参数:Body------要转换的变量

'参数:Cset------要转换的类型

'==================================================

FunctionBytesToBstr(Body,Cset)

DimObjstream

SetObjstream=Server.CreateObject("adodb.stream")

objstream.Type=1

objstream.Mode=3

objstream.Open

objstream.Writebody

objstream.Position=0

objstream.Type=2

objstream.Charset=Cset

BytesToBstr=objstream.ReadText

objstream.Close

setobjstream=nothing

EndFunction

推荐文章
猜你喜欢
附近的人在看
推荐阅读
拓展阅读
相关阅读
网友关注
最新ASP教程学习
热门ASP教程学习
编程开发子分类