After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 703212 - Handle escaped unicode characters
Handle escaped unicode characters
Status: RESOLVED INVALID
Product: json-glib
Classification: Core
Component: Parser
git master
Other Linux
: Normal normal
: ---
Assigned To: json-glib-maint
json-glib-maint
Depends on:
Blocks: 697218
 
 
Reported: 2013-06-27 19:14 UTC by Zeeshan Ali
Modified: 2013-07-24 01:02 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Zeeshan Ali 2013-06-27 19:14:00 UTC
While the RFC says that all strings are supposed to be unicode characters, it also says "Any character may be escaped" (2.5. Strings) so json-glib should correctly handle (i-e unescape such characters) on parsing JSON strings. In geocode-glib, we want to use a service that escaped every non-ASCII character:

http://nominatim.openstreetmap.org/search?q=Lyon&format=json&addressdetails=1&limit=1
Comment 1 Zeeshan Ali 2013-07-24 01:02:43 UTC
I think I was wrong, something somewhere *is* unescaping those. So "\u00e3" is converted to "\303\243", which is the same as "ã".