Sokolee / aspjson

Automatically exported from code.google.com/p/aspjson
0 stars 0 forks source link

AscW return negative value causes jsEncode function fails #16

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. AscW() can return negative value for some multibyte character 
2. Asp complains that "charmap" array boundary exceed in function jsEncode(str)
3.

What version of the product are you using? On what operating system?
ASP JSON 2.0.3, IIS 5.1 WinXP

Please provide any additional information below.
Change 
"If charcode < 127 Then"
To
"If charcode>32 and charcode < 127 Then"
in "jsEncode(str)" can fix the problem.

Original issue reported on code.google.com by brian...@gmail.com on 6 Mar 2010 at 8:36

GoogleCodeExporter commented 8 years ago
I can fixed this problem at http://code.google.com/p/aspjson/issues/detail?id=15

I deploy with 2.0.4

Original comment by tugrulto...@gmail.com on 6 Mar 2010 at 3:40

GoogleCodeExporter commented 8 years ago

Original comment by tugrulto...@gmail.com on 6 Mar 2010 at 3:43