http://www.***.com/weblogg.asp?lei='合作研修空间' 浏览器地址栏 ... lei=request.query("lei") ... sql="select * from data where lei="&lei .... 数据库是sqlserver 这段代码在我的机器是正常的(能取到值),但上传到远程服务器后,数据为空。 我查了,应该是编码的问题,怎么表示才不出错呢?好像有个函数,请高手指点
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