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.
utf-8 handling by scribe (java) for facebook/twitter handling
Question
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.
Solution 2
OTHER TIPS
You can use the Response getStream method and parse the contents with whatever encoding you want.