2009/9/1 Felipe Gaúcho <fgaucho_at_gmail.com>:
> Finally, after my half-hour digging the MySql manuals I finally
> figured out my local problem..
>
> I am using a script to populate the database, and by default MySql
> apply "latin1" as charset .. :(
>
> since all my Jersey code is UTF-8 - and Jersey Responses assumes UTF-8
> by default,
>
> utf-8 != latin1 :(((
Glad you resolved this. However, I'm not sure I see why this was a
problem -- if you used Java strings in between, transcoding should
work correctly. That is, transfer encoding (for Jersey
requests/responses) should not directly affect persistence format
encoding (for DB).
Or are you directly storing binary response/request objects somehow?
But then again, DBs are notoriously vague with their encoding
definitions, using defaults that are not quite obvious from outside;
and have been known to cause problems in unexpected places. :-)
-+ Tatu +-