作家
登录

BytesToBstr获取的源码转换为中文的代码

作者: 来源:www.28hudong.com 2013-03-30 08:36:33 阅读 我要评论

'================================================== '函数名:BytesToBstr '作 用:将获取的源码转换为中文 '参 数:Body ------要转换的变量 '参 数:Cset ------要转换的类型 '================================================== Function BytesToBstr(Body,Cset) Dim Objstream Set Objstream = Server.CreateObject("adodb.stream") objstream.Type = 1 objstream.Mode =3 objstream.Open objstream.Write body objstream.Position = 0 objstream.Type = 2 objstream.Charset = Cset BytesToBstr = objstream.ReadText objstream.Close set objstream = nothing End Function

  推荐阅读

  asp实现限制搜索的关键字的函数

<% '****************************** '函数:CheckQuery(ByVal str) '参数:str ----搜索的字符串 '作者:阿里西西 '日期:2007/7/15 '描述:限制搜索的关键字 '示例:CheckQuery(str) '*************************>>>详细阅读


本文标题:BytesToBstr获取的源码转换为中文的代码

地址:http://www.17bianji.com/kaifa2/ASP/32457.html

关键词: 探索发现

乐购科技部分新闻及文章转载自互联网,供读者交流和学习,若有涉及作者版权等问题请及时与我们联系,以便更正、删除或按规定办理。感谢所有提供资讯的网站,欢迎各类媒体与乐购科技进行文章共享合作。

网友点评
自媒体专栏

评论

热度

精彩导读
栏目ID=71的表不存在(操作类型=0)