Closed GoogleCodeExporter closed 9 years ago
This was a problem before, but was fixed in Issue #23. See the following
thread:
http://groups.google.com/group/google-gson/browse_thread/thread/f2094410e2a7f347
In short, \u6d4b\u8bd5 is the unicode equivalent of 测试.
Try the following:
public static void main(String[] args) {
System.out.println("测试");
System.out.println("\u6d4b\u8bd5");
}
NOTE: you'll need to save the file as UTF-8
Original comment by joel.leitch@gmail.com
on 12 Dec 2008 at 9:38
We agree with the issue that was raised. Gson should not write escaped unicode
characters and instead let the underlying writer (passed in toJson()) handle
the
character encoding.
Original comment by inder123
on 19 Dec 2008 at 8:46
Fixed in r342
Original comment by inder123
on 19 Dec 2008 at 8:47
Original issue reported on code.google.com by
roger.y2...@gmail.com
on 10 Dec 2008 at 9:12