Hi Jerome,

Jerome Louvel wrote:
> After looking again at your issue with Thierry, we concluded that
> there is no bug, just some classical characters encoding confusion
> :-).

Ok, that's what I thought of when I wrote "it seems to be an encoding
issue which might not even be related to restlets" in my last message.

> Now, with your Restlet approach, the object is serialized using Java 
> serialization (binary scheme). When it gets deserialized, it restores
> strings in the JVM as UTF-16 (Java's internal encoding for strings).
> When you print those strings to your console, there is an issue
> because the console expects another encoding (ISO-8859-1) and has no
> way to automatically convert your UTF string.

I thought that Java will convert it to the system's default encoding
when writing e.g. to the console.

Thanks for looking into this and your explanation!

Best regards,
Hannes

Reply via email to