Skip to content
Advertisement

Export unicode data from mysql

I have some data in one of my mysql table stored as utf8. The data is some japanese text. I need to export it to excel. Could you tell how to do it? Exporting by SELECT ... INTO OUTFILE returns some plain text file. I’m not sure how to read it back in excel so that japanese character would show properly

Thanks Nayn

Advertisement

Answer

Actually the text file retains the data as is. It is just that if we open directly in excel, it misinterprets the character encoding for the file. I opened it using notepad and saved in encoding as ‘utf8’. next time when i opened it in excel it showed the characters properly. Thanks Nayn

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement