users@jaxb.java.net

Re: Unicode UTF-8 Umlaute

From: James Mao <james.mao_at_iona.com>
Date: Tue, 28 Aug 2007 11:56:41 +0800

The workaround solution is escape/unescape

org.apache.commons.lang.StringEscapeUtils.escapeHtml(String str)

Will that solve the problem?

Cheers,
James


> Hi,
>
> here is what I've tried.
>
> A file that is completely encoded in UTF-8 has been unmarshalled and
> the unmarshalling
> works fine except for the fact that the German 'Umlaute' are not correct.
>
> The element content is defined as <text>Stück</text> but the property
> text within the
> Java Bean doesn't contain "Stück" but "St√ºck". I've tried to change
> the encoding but it
> still does not work.
>
> Does anybody has a clue why it is not working?
>
>
> Best Regards,
> -- Roman
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
> For additional commands, e-mail: users-help_at_jaxb.dev.java.net
>