i use jsonnet tool to convert json
"{a:\"李\"}"
result is
{
"name": "\u00c0\u00ee"
}
why chinese is convert to two Unicode?
i use jsonnet tool to convert json
"{a:\"李\"}"
result is
{
"name": "\u00c0\u00ee"
}
why chinese is convert to two Unicode?
It works for me. I suspect you are not giving Jsonnet UTF-8 (which is required). You can use iconv to convert textual data to UTF-8.
$ jsonnet -e "{a:\"李\"}"
{
"a": "李"
}