Re: Help on setting UTF8 characterset
- From: RedGrittyBrick <RedGrittyBrick@xxxxxxxxxxxxx>
- Date: Tue, 27 May 2008 13:18:26 +0100
Sandy80 wrote:
Hi,
I have a batch program that is used for formatting some data. The
program uses a java class to take an input as a .xls file, formats the
data from that file and converts it into a .csv file.
The issue that I am facing is that some data in the .xls file is not
represented correctly in the .csv file. For example data like "Dékán"
in the .xls *** is represented like "Dékán" in the formatted file.
Maybe the CSV file is correct but you are not loading it or viewing it with a UTF8 encoding? What does a hex dump of that file reveal?
I wanted to know how to set the character set to UTF8 in the java
class so that it represents the data correctly even after the
formatting.
The API docs for the class will specify how to set the encoding.
e.g. new FileOutputStream("outfilename"), "UTF8");
Since you provide no code I can't identify the appropriate action for your specific case.
Any help would be appreciated.
If you read and act on http://sscce.org/ you will get help.
--
RGB
.
- References:
- Help on setting UTF8 characterset
- From: Sandy80
- Help on setting UTF8 characterset
- Prev by Date: Help on setting UTF8 characterset
- Next by Date: Re: Help on setting UTF8 characterset
- Previous by thread: Help on setting UTF8 characterset
- Next by thread: Re: Help on setting UTF8 characterset
- Index(es):