jquery - Two unicode code-points when using json_write()? -
when using boost::property_tree::write_json()
write json file, unicode characters represented 2 "/u"-code points.
- so
ä
become\u00c3\u00a4
.
my problem is, generating json file read via jquery shown in web page. in case, pair shown 2 separated unicode symbols.
- so
ä
looksä
is there way configure output encoding single utf16 code point? or there way tell jquery use both code-points one?
also, why ä
becoming \u00c3\u00a4
instead of \u00e4
? don't it.
thanks help!
that's because it's encoded "utf-8", if output comes out wrong that, it's either because it's been encoded twice, or because it's not being "understood" utf-8. because web-page not correctly set "use utf-8". header on page need have content-type: text/html; charset=utf-8
or along lines.
Comments
Post a Comment