Skip to content

Commit

Permalink
FIX: correct decoding escaped Unicode chars in the JSON codec
Browse files Browse the repository at this point in the history
  • Loading branch information
Oldes committed May 8, 2023
1 parent 576b183 commit c77e995
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mezz/codec-json.reb
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ decode-unicode-char: func [
"Convert \uxxxx format (NOT simple JSON backslash escapes) to a Unicode char"
ch [string!] "4 hex digits"
][
try/except [to char! to integer! debase ch 16][ return none ]
try/except [to string! debase ch 16][ return none ]
]

replace-unicode-escapes: func [
Expand Down

0 comments on commit c77e995

Please sign in to comment.