poi-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jussi Koiranen" <jussi.koira...@solita.fi>
Subject Re: 'ä', 'ö' and 'å' with WordDocument
Date Thu, 28 Aug 2003 06:24:45 GMT
I downloaded sources from CVS and compiled,
now 'ä', 'ö' and 'å' are woking.

I down't know why it didn't work with the release-version.

Jussi Koiranen

----- Original Message ----- 
From: "Ryan Ackley" <sackley@cfl.rr.com>
To: "POI Users List" <poi-user@jakarta.apache.org>
Sent: Wednesday, August 27, 2003 5:23 PM
Subject: Re: 'ä', 'ö' and 'å' with WordDocument


> Your StringWriter may not be using the correct character encoding.
Character
> encoding determines how java converts bytes to characters. I think the
> default is utf-8 for java Strings. One way to test this out is to step
> through the code and find the actual bytes that are being read from the
Word
> doc then go to http://www.unicode.org and verify that these are the
correct
> bytes for 'ä', 'ö' and 'å'. If they are correct then the encoding you are
> using is wrong.
>
> If its our fault I will try to address this issue in a future release.
>
> Ryan
>
> ----- Original Message ----- 
> From: "Jussi Koiranen" <jussi.koiranen@solita.fi>
> To: <poi-user@jakarta.apache.org>
> Sent: Wednesday, August 27, 2003 3:26 AM
> Subject: 'ä', 'ö' and 'å' with WordDocument
>
>
> > I am readin word document with org.apache.poi.hdf.extractor.WordDocument
> as
> > follows:
> >
> >     WordDocument wordDoc = new WordDocument("test.doc");
> >     StringWriter strWriter = new StringWriter();
> >     wordDoc.writeAllText(strWriter);
> >     System.out.println(strWriter); //for debuging
> >
> > But ä, ö and å are not read correctly from word document (test.doc).
> > I am doing something wrong, or is this bug?
> >
> > I am tested this with jakarta-poi-1.5.1-final-bin and
> > jakarta-poi-1.8.0-dev-bin packages.
> >
> > Jussi Koiranen
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: poi-user-help@jakarta.apache.org
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: poi-user-help@jakarta.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: poi-user-help@jakarta.apache.org


Mime
View raw message