: 在做內有VBscript的asp homepage時,一個form提交方法為GET, : 當form的表單傳給asp處理時,入...asp?name="張三" : 可張三的中文已經亂碼,請問如何在asp中用vbscript將亂碼恢復成 : 正確的中文. : .......
對文字進行如下cut()過程即可 <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>
|