如何清除Vbscript惹出来的中文乱码?
来源:asp之家 时间:2010-01-18 20:50:00
如何清除Vbscript惹出来的中文乱码?
<script language=vbscript runat=server>
Function cut(str)
length = Len(str)
count = 1
Do While count <= length
If strComp(Mid(str,count,1),"Z",1) > 0 Then
length = length -1
End If
count = count + 1
Loop
cut = Left(str,Length)
if Session("Version")<>3 then
' 若为高版本asp则不需处理
cut = str
end if
End Function
</script>
如何强制用户浏览网站的主页?
<%
if left(Request.ServerVariables("HTTP_REFERER"),24)
<> "https://www.aspxhome.com/" and _
Request.ServerVariables("HTTP_REFERER") <> "" then
Response.Redirect "http://www.aspxhome.com "
end if
%>
标签:乱码,中文,VBScript
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
数据库主键的故事
2008-05-31 07:50:00
看看那些名牌LOGO的成长史
2009-03-24 20:37:00
![](https://img.aspxhome.com/file/UploadPic/20093/24/1406370-34s.jpg)
极简主义网站设计:寓丰富于简单
2009-12-07 21:37:00
![](https://img.aspxhome.com/file/UploadPic/200912/7/janreichle-67s.jpg)
javascript基础之数组(Array)对象
2008-06-25 13:32:00
快速掌握 Mysql数据库对文件操作的封装
2009-02-23 17:37:00
保护Access 2000数据库的安全
2008-10-23 13:55:00
SQL子查询全接触
2007-08-20 10:51:00
HTML5 Canvas 起步(2) - 路径
2009-05-12 12:06:00
![](https://img.aspxhome.com/file/UploadPic/20095/12/2-use-beginpath-60s.jpg)
让插入到 innerHTML 中的 javascript 跑起来
2008-07-01 13:14:00
focus 进 textarea 元素后光标位置的修复
2008-09-27 13:27:00
在asp中用集合成批操作数据库
2008-03-10 17:22:00
ASP+AJAX做类似google的搜索提示
2008-10-24 13:49:00
通过T-SQL语句实现数据库备份与还原的代码
2011-12-01 08:02:15
MSSQL存储过程解秘过程全析
2010-07-05 08:49:00
设计稿标注首屏线的确定始末
2011-03-30 12:36:00
![](https://img.aspxhome.com/file/UploadPic/20113/30/t1get4xxtrxxxxxxxx-616-373-65s.png)
ASP生成XML文件
2009-06-29 16:28:00
高效地获取XMLhttp对象
2010-01-19 13:49:00
服务器端控件是如何操作的?
2009-11-01 15:22:00
ASP+MSSQL2000 数据库被批量注入后的解决方法第1/2页
2011-04-06 10:50:00
教你如何在SQL Server数据库中加密数据
2009-09-10 14:49:00