OK, so given that, I'm trying to figure out how when I take a String from cell.getStringCellValue(), and write it to a file whose FileOutputStream has been explicitly wrapped by a FileWriter using the UTF8 encoding--I'm trying to figure out why the contents in the file appear to be in MacRoman encoding (my platform's default).
I'm creating my XMLEventWriter that's ultimately doing the writing like this: final FileOutputStream fileOuptutStream = new FileOutputStream(file); final OutputStreamWriter outputStreamWriter = new OutputStreamWriter(fileOuptutStream, "UTF8"); final BufferedWriter bufferedWriter = new BufferedWriter(outputStreamWriter); XMLEventWriter writer = outputFactory.createXMLEventWriter(bufferedWriter); ...and then at various points I'm using the String value from POI to stick in there as #PCDATA. Seems like this should not involve ANY character set conversion, is what you're telling me? L On Thu, Sep 9, 2010 at 4:30 PM, Nick Burch <[email protected]> wrote: > On Thu, 9 Sep 2010, Laird Nelson wrote: > >> I am using POI to read an Excel spreadsheet. I have no idea what >> character encoding it's in. I can tell you, however, it's not in UTF8. :-) >> > > You don't have to worry about the encoding, POI sorts that out for you. > Every String you get back is a real Java unicode string already > > Nick > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
