Koriean text in CSV file...

Thread Solved

Join Date: Mar 2007
Posts: 9
Reputation: zigpy_siva is an unknown quantity at this point 
Solved Threads: 4
zigpy_siva's Avatar
zigpy_siva zigpy_siva is offline Offline
Newbie Poster

Koriean text in CSV file...

 
0
  #1
Dec 2nd, 2008
hi
I am creating an CSV file in java by putting the Korean values in a properties file like "\uc81c\ubaa9 \uc18c\uc2a4\uc5d0\uc11c \uc5b8\uc5b4" which is properly coming in the CSV file (like "번호 출판물의") when I open it in the notepad and select the font as Arial Unicode MS, but when I open the same in MS EXCEL it is coming as junk values

I have even installed the Korean language pack for MS Office.
i am also writing to file using UTF-8 fromat...

attached the CSV file
Last edited by zigpy_siva; Dec 2nd, 2008 at 6:41 am.
Attached Files
File Type: zip KO26112008 191513.zip (234 Bytes, 5 views)
Reply With Quote Quick reply to this message  
Join Date: Nov 2008
Posts: 822
Reputation: verruckt24 is a jewel in the rough verruckt24 is a jewel in the rough verruckt24 is a jewel in the rough verruckt24 is a jewel in the rough 
Solved Threads: 73
verruckt24's Avatar
verruckt24 verruckt24 is offline Offline
Practically a Posting Shark

Re: Koriean text in CSV file...

 
0
  #2
Dec 2nd, 2008
But for that to be an actual CSV file it should have different values separated by commas. Are you separating out values using commas ?
Reply With Quote Quick reply to this message  
Join Date: Aug 2006
Posts: 137
Reputation: PoovenM is on a distinguished road 
Solved Threads: 11
PoovenM PoovenM is offline Offline
Junior Poster

Re: Koriean text in CSV file...

 
0
  #3
Dec 2nd, 2008
While there isn't a stringent specification for these files, I doubt Microsoft Excel will allow such character encodings. So I tested it out... I copied one of the characters you gave as an example and pasted in Excel - it showed. I then saved the file as CSV (Excel gave the incompatibility error but I continued anyway). Closed the file and re-opened to find the Unicode character was stored as a '?'

This seems to be a clear indication that you probably won't be able to do whatever it is you want to do using MS Excel as your application for the end-user. I've opened the same file using OpenOffice.org Calc and it requests the character set. If I choose Korean then it sort of displays the contents correctly.

I recommend readings this website: http://www.creativyst.com/Doc/Articles/CSV/CSV01.htm
There is a section on CSV and Unicode.

To that end, I also recommend simply storing your data in the native Excel format (xls). There are many APIs available that would allow this to be done in Java and that would certainly save your the trouble of making Excel compliant.

Oh and to answer the previous post, yes he is separating the values using commas.
Last edited by PoovenM; Dec 2nd, 2008 at 8:08 am.
Reply With Quote Quick reply to this message  
Join Date: Mar 2007
Posts: 9
Reputation: zigpy_siva is an unknown quantity at this point 
Solved Threads: 4
zigpy_siva's Avatar
zigpy_siva zigpy_siva is offline Offline
Newbie Poster

Re: Koriean text in CSV file...

 
0
  #4
Dec 3rd, 2008
thanks PoovenM, as you said the Ms Excel is not storing the values by default for the CSV type of files.. ones again thanks, and thanks for verruckt24 also...
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Other Threads in the Java Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC