Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Encoding issue in creating a csv file with the korean string

 
Srikumar Krishnamurthy
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Martijn Verburg
author
Bartender
Posts: 3275
5
Eclipse IDE Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).
 
Srikumar Krishnamurthy
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3275
5
Eclipse IDE Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's not the font you need to change but the encoding, you probably need to swap it to UTF-8
 
Srikumar Krishnamurthy
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks. I will try it
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic