Menu

#113 JSONObject getString(String key) - Character Encoding

open
nobody
None
5
2011-02-05
2011-02-05
Marlon
No

Hi, i-ve noticed that the mentioned method (line 2086 - "public String getString(String key)" ) doesn't care about character encoding, in fact if i've an utf8 encoded string with non-ASCII characters those are transformed in question marks.
I think that can be added a method like this public String getString(String key, String charset) that decodes the string with the given charset and not with the system default.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.