Problem in using APIs /1.1/users/suggestion


#1

I am using REST 1.1 APIs to get users/suggestion like:

/1.1/users/suggestions.json?lang=zh-cn ```

Twitter server responds with data having UTF-8 encoded slugs like:

[{“size”:20,“name”:"\u4f5c\u5bb6",“slug”:"\u4f5c\u5bb6"},
{“size”:5,“name”:"\u5a31\u4e50",“slug”:"\u5a31\u4e50"},
{“size”:20,“name”:"\u5b98\u65b9\u8d26\u53f7",“slug”:"\u5b98\u65b9\u8d26\u53f7"},
{“size”:6,“name”:"\u5e7d\u9ed8",“slug”:"\u5e7d\u9ed8"},
{“size”:20,“name”:"\u653f\u6cbb",“slug”:"\u653f\u6cbb"},
{“size”:20,“name”:"\u65b0\u95fb",“slug”:"\u65b0\u95fb"},
{“size”:19,“name”:"\u751f\u6d3b",“slug”:"\u751f\u6d3b"},
{“size”:20,“name”:"\u79d1\u6280",“slug”:"\u79d1\u6280"},{“size”:11,“name”:"\u827a\u672f\u4e0e\u8bbe\u8ba1",“slug”:"\u827a\u672f\u4e0e\u8bbe\u8ba1"}]

When I try to user this UTF-8 encoded slug in API /1.1/users/suggestions/:slug.json after %encoding UTF-8 slug like:

/1.1/users/suggestions/%5Cu5e7d%5Cu9ed8.json?lang=zh-cn ```

I am getting error “Page does not exist” as:

{"errors":[{"message":"Sorry, that page does not exist","code":34}]}

Please help what I am doing wrong in this request. Is there some other encoding I have to apply on UTF-8 encoded slug before using it in request?