UTF-8 unescape in makeRequest drops letters that follow escape sequences -------------------------------------------------------------------------
Key: SHINDIG-1235 URL: https://issues.apache.org/jira/browse/SHINDIG-1235 Project: Shindig Issue Type: Bug Reporter: Thiago Arrais 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] -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.