aspose file tools*
The moose likes Java in General and the fly likes Encoding issue in creating a csv file with the korean string Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Encoding issue in creating a csv file with the korean string" Watch "Encoding issue in creating a csv file with the korean string" New topic
Author

Encoding issue in creating a csv file with the korean string

Srikumar Krishnamurthy
Greenhorn

Joined: Dec 30, 2008
Posts: 5
I am facing an issue in creating a csv file with the encoded korean string. When I open the created csv file, i find all junk characters.
If i open the csv in a Editplus and if i change the font to "BATANG" the Korean char are coming fine.
But when i create the xml with the below code, the Korean char are coming fine.

Here is the code i use for creating the CSV file.



// 프랭클린 유에스 오퍼튜니티 펀드 - This is the sample Korean char.

Kindly help me in resolving this issue. Similarly i need to do for other languages also.


Srikumar
Martijn Verburg
author
Bartender

Joined: Jun 24, 2003
Posts: 3274
    
    5

Hi there,

What editor do you normally open the file with? Remember the editor by default must be able to read your encoded characters, some editors are less able than others (or as you've noticed in your case, you need to change the language/encoding so that the Korean characters would show).


Cheers, Martijn - Blog,
Twitter, PCGen, Ikasan, My The Well-Grounded Java Developer book!,
My start-up.
Srikumar Krishnamurthy
Greenhorn

Joined: Dec 30, 2008
Posts: 5
Normally I use Edit plus.

Yes when i change the font in the editplus to "BATANG" it would come fine. But the problem is there may be more than one language specific chracter may come.

In that case this font change will not work.

Is there any other alternate way? Kindly help
Martijn Verburg
author
Bartender

Joined: Jun 24, 2003
Posts: 3274
    
    5

It's not the font you need to change but the encoding, you probably need to swap it to UTF-8
Srikumar Krishnamurthy
Greenhorn

Joined: Dec 30, 2008
Posts: 5
Thanks. I will try it
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Encoding issue in creating a csv file with the korean string