Excel to CSV corrupting punctuation and accents

twl2009

Board Regular
Joined
Jan 7, 2016
Messages
247
I need to transfer a large database from and xlsx file to a csv file in order to update a website. When I try to do this all apostrophes and accents are corrupting. Is there a way of preventing this?????


Thanks
 
I tried saving and then changing the file ext back to .csv, but the website wouldnt except it.??
There is your problem right there.
That is not how you convert a file. File extension are really just "clues" that tell your computer what type of file it is, and what program you should use to open it. Changing the file extension does NOT change or convert anything.

If you want to save the file as CSV file, you need to go to Save As and choose one of the CSV options.
 
Upvote 0

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
I have also tried saving it as a csv from that point, but again it corrupts
Please outline you exact steps, from start to finish, so we know exactly how you are attempting to do this.
 
Upvote 0
Sure , no worries Joe.
Firstly I downloaded the csv from the website, I opened it on my desktop (which opened it in excel). I then copy and pasted from excel spreadsheet that I have made to populate this csv with the website info. Then saved csv to desktop. Then went to the website dashboard and uploaded the csv. This was corrupted.
Then I tried downloading csv into google sheets. copy and pasted the same info into it. downloaded the csv to my desktop and then went to the the website to upload the csv from my desktop. this was again corrupted.
I am going to now going to try copy and pasting from excel direct to google sheets and saving as a csv, see if that works.
otherwise im really out of ideas.
 
Upvote 0
Don't open the CSV in Excel! That could be converting data which is causing you issues!
Opening CSV files in Excel does automatic conversions on certain fields. This can have unattended consequences.

It sounds like you have existing data in Excel that you want to add to an existing CSV file. So try this instead:
1. Open your existing Excel file and do a "Save As" and choose the CSV option.
2. Open the CSV file you just exported from Excel in Note Pad
3. Open the CSV file you downloaded from your Website in NotePad
4. Copy and paste the data from one CSV file to the other CSV file in NotePad
5. Save your the combined CSV file in NotePad.
6. Try uploading the combined CSV file to the website.
 
Last edited:
Upvote 0
Okay I have solved the problem. Here is how for anyone stuck with this problem.

I downloaded a text editor called 'brackets', but I think notebook or any of the others would work.
downloaded the csv from the website into brackets
Then saved excel document as csv utf-8 and also opened in brackets
copy and pasted across from that csv to the csv I had downloaded from website and saved it
Then uploaded to website from this.

Hope this might help someone
 
Upvote 0

Forum statistics

Threads
1,224,884
Messages
6,181,571
Members
453,054
Latest member
arz007

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top