- : 在做内有VBscript的asp homepage时,一个form提交方法为GET,
- 当form的表单传给asp处理时,入...asp?name="张三"
- 可张三的中文已经乱码,请问如何在asp中用vbscript将乱码恢复成
- 正确的中文.
- .......
对文字进行如下cut()过程即可
1<script language="vbscript" runat="server">
2Function cut(str)
3length = Len(str)
4count = 1
5Do While count <= length
6If strComp(Mid(str,count,1),"Z",1) > 0 Then
7length = length -1
8End If
9count = count + 1
10Loop
11cut = Left(str,Length)
12if Session("Version")<>3 then '若为高版本asp则不需处理
13cut = str
14end if
15End Function
16</script>