Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

OpenOffice when exporting CSV underscores are replaced with "+AF8-"

I'm having issues with a Open Office. I'm trying to export some files as CSV text and it appears that underscores and perhaps some other characters are being replaced. For instance, I created this file in a text editor and saved it as test.csv:

"this_value","is_replaced"

I then opened the file into Open Office as a spreadsheet. It looked fine. Then I saved it as a new CSV file named test-export.csv. When I open the new file in a text editor, the underscores are replaced with "+AF8-", and the comma is replaced with a tab.

this+AF8-value  is+AF8-replaced

This change makes the file useless for my purposes. Any idea what is causing this?

like image 700
Kevin K Avatar asked Aug 12 '16 17:08

Kevin K


Video Answer


1 Answers

Apparently the problem is caused when you import the CSV file into Open Office. When you import it you have a choice which character set to use. I used UTF-7 when I should have used UTF-8. When I import using UTF-8, it then saves the file as I expect it should.

like image 52
Kevin K Avatar answered Oct 22 '22 22:10

Kevin K