如何清除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)
猜你喜欢
python3中的logging记录日志实现过程及封装成类的操作
2023-07-30 21:58:21
python dict 相同key 合并value的实例
2021-06-17 09:07:43
Python下载网络小说实例代码
2023-08-01 18:22:17
![](https://img.aspxhome.com/file/2023/2/69502_0s.jpg)
Go项目实现优雅关机与平滑重启功能
2023-07-16 07:36:13
MySQL source命令的使用简介
2024-01-15 14:35:18
Pycharm 字体大小调整设置的方法实现
2023-10-23 19:35:11
![](https://img.aspxhome.com/file/2023/4/135004_0s.png)
python读写数据读写csv文件(pandas用法)
2021-06-15 15:28:03
![](https://img.aspxhome.com/file/2023/6/121906_0s.png)
JavaScript实现字符串与日期的互相转换及日期的格式化
2024-06-05 09:13:33
jquery的父、子、兄弟节点查找,节点的子节点循环方法
2023-07-02 05:34:40
解释FCKeditor样式的工作原理
2007-10-11 13:34:00
YOLOv5在图片上显示统计出单一检测目标的个数实例代码
2023-07-20 18:08:42
![](https://img.aspxhome.com/file/2023/8/62298_0s.png)
python用tkinter开发的扫雷游戏
2022-05-16 18:39:40
![](https://img.aspxhome.com/file/2023/8/84978_0s.png)
详解Windows Server 2012下安装MYSQL5.7.24的问题
2024-01-27 10:20:37
![](https://img.aspxhome.com/file/2023/7/77327_0s.png)
python多线程实现动态图绘制
2023-10-22 21:53:53
JavaScript+Canvas实现带跳动效果的粒子动画
2024-04-23 09:08:06
![](https://img.aspxhome.com/file/2023/2/135932_0s.png)
pyhton学习与数据挖掘self原理及应用分析
2023-07-04 23:19:11
MySQL 事务概念与用法深入详解
2024-01-14 02:56:06
![](https://img.aspxhome.com/file/2023/6/127356_0s.png)
Pytest mark使用实例及原理解析
2021-02-27 14:30:11
tensorflow使用L2 regularization正则化修正overfitting过拟合方式
2023-11-26 04:07:32
![](https://img.aspxhome.com/file/2023/8/93868_0s.jpg)
python中arrow库用法大全
2021-08-25 06:48:44
![](https://img.aspxhome.com/file/2023/4/104804_0s.png)