Closed GoogleCodeExporter closed 9 years ago
I suspect that your IDE or terminal emulator is choking on the UTF-8
characters. You can confirm this by printing the string.length() - if Gson is
doing unicode properly then "\u20AC" will have length of 1. But a non-unicode
capable terminal emulator will print two characters for the two bytes in the
UTF-8 encoding.
If that is the problem, you should consider upgrading to a Unicode-capable
terminal emulator. I use Terminator: http://software.jessies.org/terminator/
Original comment by limpbizkit
on 21 Dec 2011 at 8:05
Thanks a lot. You are absolutely right. I used putty as the terminal. When I
open the log file on Windows, everything is displayed well. I blamed wrong lib
:-(.
Jim
Original comment by wguo1...@gmail.com
on 21 Dec 2011 at 8:19
Original issue reported on code.google.com by
wguo1...@gmail.com
on 20 Dec 2011 at 6:11