We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e4ff708 commit 22a463aCopy full SHA for 22a463a
JsonConverter.bas
@@ -502,6 +502,13 @@ Private Function json_Encode(ByVal json_Text As Variant) As String
502
For json_Index = 1 To VBA.Len(json_Text)
503
json_Char = VBA.Mid$(json_Text, json_Index, 1)
504
json_AscCode = VBA.AscW(json_Char)
505
+
506
+ ' When AscW returns a negative number, it returns the twos complement form of that number.
507
+ ' To convert the twos complement notation into normal binary notation, add 0xFFF to the return result.
508
+ ' https://support.microsoft.com/en-us/kb/272138
509
+ If json_AscCode < 0 Then
510
+ json_AscCode = json_AscCode + 65536
511
+ End If
512
513
Select Case json_AscCode
514
' " -> 34 -> \"
0 commit comments