Thank you for your responses both, Kohsuke and Jukka.
Firstly the dokument was well-formed. So that's not the problem.
Secondly yes, it all worked well when I used ISO-8859-1 encoding.
Still I am a little confused over why it doesn't work with UTF-8.
Since from what I know Java uses UTF-8 internally and I adressed the
schema to use that encoding. Has it something to do with Java and the
binding compiler don't agree upon how to represent the characters.
Isn't it the devolopers of jaxb intent that UTF-8 should be possible to
use with for instance all european languages?
/Claes
On Sun, 12 Jan 2003, Jukka Uusisalo wrote:
> On Thu, 26 Dec 2002 11:53:26 -0700, Claes Hammer <hammer_at_SKIP.INFORMATIK.GU.SE> wrote:
>
> >Hi
> >
> >I get
> >java.io.UTFDataFormatException: Invalid byte 2 of 3-byte UTF-8 sequence ...
> >when I use swedish characters as ?, ?, ?. Can anyone shed some light over this.
>
> Tj?nare Claes,
>
> I made some quick testcases, because these finnish :) characters causes
> sometimes lot of work.
>
> Marshalling element content '???' produces 'äöå'
> and unmarshalling that produces correct data to back objects.
> I think that works just fine.
>
> Also i think if you are able to use iso-8859-1 encoding in your
> xml-data, you can unmarshall those characters as we know them. :)
> But probably causes some problems if transfer data between different
> platforms.
>
> - Jukka -
>