Skip to content
This repository has been archived by the owner on Jan 6, 2023. It is now read-only.

Commit

Permalink
asp json 解决文件名乱码
Browse files Browse the repository at this point in the history
  • Loading branch information
yancend committed Dec 24, 2013
1 parent e0bc698 commit ec6e2bd
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions asp/json.asp
Original file line number Diff line number Diff line change
Expand Up @@ -83,15 +83,7 @@ Class jsCore
haystack(i) = Mid(str, i + 1, 1)
charcode = AscW(haystack(i)) And 65535
If charcode < 127 Then
If Not IsEmpty(charmap(charcode)) Then
haystack(i) = charmap(charcode)
ElseIf charcode < 32 Then
haystack(i) = "\u" & Right("000" & Hex(charcode), 4)
End If
Else
haystack(i) = "\u" & Right("000" & Hex(charcode), 4)
End If
Next
jsEncode = Join(haystack, "")
Expand Down

0 comments on commit ec6e2bd

Please sign in to comment.