JSON: \u escapes and safe_title

Need the mods or admins to do something for you? Post here. Read the "About" post first.

Moderators: Magistrates, Prelates, Moderators General

JSON: \u escapes and safe_title

Postby Jonathanvt » Fri Jan 21, 2011 4:13 am UTC

Since the JSON is now protipped on the site and should therefore hopefully have someone backing it, I'll highlight some issues:

http://xkcd.com/847/info.0.json
Code: Select all
"alt": "E\u00c3\u00a4rendil will patrol ...

The spec says \u is a UTF-16 escape (resulting in ä instead of ä). Here, it has UTF-8 encoded in it. Shouldn't it be \u00e4 if you must escape? Or is the interface defined to be like this now for compatibility with software that expects it?

http://xkcd.com/472/info.0.json
Code: Select all
"safe_title": "<span style=\"color: #0000ED\">House</span> of Pancakes"

What's safe_title about, if it's not stripping things like this?
Jonathanvt
 
Posts: 6
Joined: Wed Apr 22, 2009 6:54 am UTC

Return to Site/Forum issues

Who is online

Users browsing this forum: Illumpdrarp and 6 guests