Solved

Opening CSV with excel

Posted on 2010-09-02
5
435 Views
Last Modified: 2012-05-10
Hi there,
I want to do a very simple thing. I want to create a csv file with excel (or any other way for that matter) which i can give to a client of mine so that he can edit it and upload it to a web service...

I open excel, write all the data i need, then i close it and save it as csv, and when i reopen it all the GREEK characters in it become ????

I tried creating the file with openOffice and saving it with UTF-8 encoding but then i got weid "chinese" like characters.

This seems very weird.
0
Comment
Question by:ioustinos_sarris
5 Comments
 
LVL 20

Expert Comment

by:pari123
ID: 33589495
Hi,
Do you MS-Excel application? Can you try saving the csv file within that instead of using openoffice.org?

If you want, please post your excel version of the file so that I can create a CSV file and see what comes up?

Thanks,
Ardhendu
0
 
LVL 3

Expert Comment

by:avalenzuela
ID: 33589512
csv files are basically text..
does the data change when you reopen the file with notepad ?
0
 
LVL 8

Expert Comment

by:netmunky
ID: 33589679
make sure the file is saved as UTF-8. if you open the csv in notepad and it looks correct, choose File -> Save As..., and change the encoding to UTF-8 (default is ANSI). save the document, and open in excel.
0
 
LVL 81

Accepted Solution

by:
byundt earned 500 total points
ID: 33592817
Excel is known to have issues with Unicode characters and .CSV file format. The .CSV file format doesn't deal with Unicode characters directly, but you may be able to handle it by using the proper keyboard encoding. http://drupal.org/node/172996

Rather than dealing with this problem, you may prefer to save the file in tab delimited format, which Excel can read and write. This alternative is also discussed in the above link.
0
 
LVL 81

Expert Comment

by:byundt
ID: 33592992
The other way of handling the issue is to make sure that the very first characters in your .CSV file specify the Byte Order Marker (BOM) http://joconner.com/2010/03/csv-utf/

I believe you can return the suggested BOM character with the VBA statement ChrW(&HFEFF)
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

How to quickly and accurately populate Word documents with Excel data, charts and images (including Automated Bookmark generation) David Miller (dlmille) Synopsis In this article you’ll learn how to use ExcelToWord! to copy data,charts, shapes …
Workbook link problems after copying tabs to a new workbook? David Miller (dlmille) Intro Have you either copied sheets to a new workbook, and after having saved and opened that workbook, you find that there are links back to the original sou…
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now