问题
I have read the following advice for converting UTF-8 encoded(Hebrew) XLS to CSV via Google Docs, and it worked. When I open the CSV in Sublime2 with UTF8 encoding the Hebrew is showing correctly. But then, when I try to import the Data to My DB using SQLyog, after making sure that both my target table and the import definitions are set to UTF8, I get Jibrish, like: מדרשות Where did I go wrong?
回答1:
The best way to export from excel to csv is:
- Open the excel file and click on "Save as..."
- Insert a name and then in "Save as File Type" select "CSV (Comma delimited)"
Then, click on "Tools" and select "Web Options"
Go to "Encoding", under the option "Save this document as" select "Unicode (UTF-8)".
Listo! I couldn't leave the answer in the proper question : (
Original post found> eHow(spanish)
Some images of this.


回答2:
The solution I came up with was skipping the conversion from CSV to SQL using RegExp. Something like:
FIND: "(.*)","(.*)","(.*)","(.*)","(.*)","(.*)","(.*)","(.*)","(.*)","(.*)"
REPLACE: INSERT INTO aminadav VALUES (NULL,$1,"$2",$3,"$4","$5","$6","$7","$8","$9","$10");
回答3:
- In Microsoft Excel, open the *.xlsx file.
- Select Menu | Save As.
- Enter any name for your file.
- Under "Save as type," select Unicode Text.
- Click Save.
- Open your saved file in Microsoft Notepad.
- Replace all tab characters with commas (","). Select a tab character (select and copy the space between two column headers) Open the "Find and Replace" window (Press Ctrl+H) and replace all tab characters with comma .
- Click Save As.
- Name the file, and change the Encoding: to UTF-8.
- Change the file extension from ".txt" to ".csv".
- Click Save.
- Open the .csv file in Excel to view your data.
source: https://help.salesforce.com/articleView?id=000003837&type=1
来源:https://stackoverflow.com/questions/13745566/excel-xls-to-csv-with-utf-8