I’m exporting an excel file into a CSV and then uploading to a MySQL database, but every entry that has a ™ (trademark) turns into a small a (ª).
The database is set to utf8_unicode_ci, as is each row. Any ideas why this is happening still?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There’s an easier way to do the conversion. If you use Windows, you can download a text editor like Notepad++ for free, and Notepad++ can encode or convert a text file into UTF-8 (on the menu bar, go to Encoding, switch to whichever one you want).
The same is also possible with a Mac editor like TextMate. File > Re-Open With Encoding.
Excel does indeed automatically encode a file generated from Excel in the Windows format. However, if it is used to open a file that uses a different encoding, it should preserve that encoding; it won’t convert UTF-8 encoded files into Windows-1252.