Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
-
None
Description
When the remote server responds with an Unicode UTF-8 escaped string, Shindig tries to unescape it before forwarding the response to the client. The unescape code, though, drops some letters following the escape sequence. For example, the JSON string
{"body": "an\u00e3o"}that gets transmitted over the wire as the byte sequence `7b 22 62 6f 64 79 22 3a 20 22 61 6e 5c 75 30 30 65 33 6f 22 7d`, gets forwarded as
{\"body\": \"anã\"}[7b 5c 22 62 6f 64 79 5c 22 3a 20 5c 22 61 6e c3 a3 5c 22 7d]
when it should have been
{\"body\": \"anão\"}[7b 5c 22 62 6f 64 79 5c 22 3a 20 5c 22 61 6e c3 a3 6f 5c 22 7d]