| | |
Koriean text in CSV file...
Thread Solved |
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
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.
•
•
Join Date: Aug 2006
Posts: 137
Reputation:
Solved Threads: 11
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.
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.
![]() |
Other Threads in the Java Forum
- Previous Thread: File I/0
- Next Thread: Applet question..
| Thread Tools | Search this Thread |
911 addball addressbook android api append applet application apps array arrays automation binary bluetooth businessintelligence button card class client code collision component crashcourse css csv database eclipse ee error fractal free ftp game gis givemetehcodez graphics gui html ide image integer integration j2me japplet java javaarraylist javadoc javafx javaprojects jni jpanel julia jvm linked linux list loan machine map method methods migrate mobile netbeans objects oriented output phone physics printf problem program programming project projects radio recursion replaydirector reporting researchinmotion rotatetext scanner se server service set sms software sort sql string swing test textfield threads tree trolltech ubuntu utility windows





