I am using scribe for oauth. In the oauth response, I receive a list of names (some of which are non-english characters e.g.chinese/japanese). Is scribe able to handle these characters (encode/decode in utf-8 compliant fashion) or is this responsibility of those implementing the api? Has anyone come across the same issue and how did they resolve it (while using scribe). Right now, if I print/log out the response.getBody, it displays characters which do not appear to be properly decoded. It could possibly be an oversight on my end - I am simply seeking some useful suggestions.

My back end systems appear to be utf-8 compliant and able to handle utf-8 characters.

有帮助吗?

解决方案 2

I used apache common lang for handling the messages & have not experienced an issue. I would use prepared statements if this information would go to a relational DB. Hope it helps.

其他提示

You can use the Response getStream method and parse the contents with whatever encoding you want.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top