简体   繁体   English

特殊字符,sql,csv,phpmyadmin,excel

[英]special character, sql, csv, phpmyadmin, excel

I have a csv file with special characters. 我有一个带特殊字符的csv文件。 I like to use Excel because I can change the columns, concatenate, etc., to change the entire table to my required table in MySQL. 我喜欢使用Excel,因为我可以更改列,连接等,从而将整个表更改为MySQL中所需的表。 But Excel just opens it showing weird characters for special characters, so in the end before I import to my MySQL via phpMyAdmin, the data is alraedy broke. 但是Excel只是打开它显示特殊字符的奇怪字符,因此最后,在我通过phpMyAdmin导入到MySQL之前,数据被破坏了。

What is the best way for me to edit a table with special characters for importing to phpMyAdmin later? 对我来说,编辑带有特殊字符的表以便以后导入phpMyAdmin的最佳方法是什么?

You should be able to tell Excel what character set to parse the file in when opening it. 打开文件时,您应该能够告诉Excel解析文件的字符集。 Try playing with the various character sets the import dialog has to offer. 尝试使用导入对话框必须提供的各种字符集。 (It shows an import dialog, right? I only have OpenOffice here.) (它显示一个导入对话框,对吗?我这里只有OpenOffice。)

You will need to go through that exercise anyway at some point, because you will need to know the file's character set when importing it into the data base. 无论如何,您都将需要进行该练习,因为在将文件导入数据库时​​需要了解文件的字符集。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM