Solved

Opening CSV with excel

Posted on 2010-09-02
5
424 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
Comment Utility
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
Comment Utility
csv files are basically text..
does the data change when you reopen the file with notepad ?
0
 
LVL 8

Expert Comment

by:netmunky
Comment Utility
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 80

Accepted Solution

by:
byundt earned 500 total points
Comment Utility
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 80

Expert Comment

by:byundt
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Sparklines have been introduced with Excel 2010 and are a useful tool for creating small in-cell charts, used for example in dashboards. Excel 2010 offers three different types of Sparklines: Line, Column and Win/Loss. What it does not offer is a…
Introduction While answering a recent question (http:/Q_27311462.html), I created an alternative function to the Excel Concatenate() function that you might find useful.  I tested several solutions and share the results in this article as well as t…
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.

762 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

6 Experts available now in Live!

Get 1:1 Help Now