Ironpaper Webintel:
By Chris Wallace
When you save a csv directly from the Excel file, it turns the characters into question marks. But there is an extremely simple solution we recently came across that we wanted to share. All you need is a google account. We also assume here that you're using phpMyAdmin. Here are the steps:
1. Open up a new spreadsheet in google drive.
2. Choose File…Import.
3. Select the .xls file you containing the Chinese, Japanese, Arabic, etc. characters that you need to import to the database.
4. Select "Replace Spreadsheet" and click "import".
5. Once the spreadsheet is uploaded, select File…Download As…Comma separated values (.csv, current sheet).
6. Open the csv with a text editor to confirm that the characters came out correctly.
7. Clean up the csv to prepare for the import - make sure the first row doesn't contain column names, and delete extra blank rows at the bottom, but leave one blank line at the end. Do a search for blank fields - ",," and replace with whatever data type that field should be, if it's numeric, make it 0 or -1, etc. Don't forget to also search for two quotation marks in a row - "" and replace them all with \". And if there are commas in any of your fields, make sure to surround that whole value with quotation marks.
8. Open phpMyAdmin, select your table, and click Import. Assuming the fields match those in the csv correctly, everything should work and you should now have your non-standard characters in the database!
by Jonathan Franchell, CEO of Ironpaper - For more tips and hacks: Need to remove a new line after h1 tags? Both web designers and SEO practitioners need to employ headline tags: H1, H2, H3 in several ways to improve web page structure and tag...
The Crowded Arena of the IT Marketplace Updated December 2024 The Information Technology (IT) landscape is experiencing rapid growth and intensifying competition. IT spending is projected to reach nearly 5.1 trillion U.S. dollars in 2024, a...
Updated December, 2024 The field of digital marketing is evolving rapidly in response to new technology and changing buyer expectations. To help career-minded marketers, we’ve rounded up the top 10 skills needed to succeed in the field. These are...