cocobelgica / AutoHotkey-JSON

JSON module for AutoHotkey

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

JSON.Dump is converting diacritics to different encoding

cawecoy opened this issue · comments

input_string := [{"city": "Montréal"}, {"city": "Vancouver"}]
cities := JSON.Load( input_string )
;;;
output_string := JSON.Dump( cities )
MsgBox, %output_string%

Result:

[{"city": "Montr\u00e9al"}, {"city": "Vancouver"}] 

It has converted é to \u00e9

Why? How can I avoid that?