Gotcha with exporting MySQL tables for windows

I encountered some interesting issues when pulling out CSV from my MySQL databases. The core issue was the csv generated was not seemingly compatible with the various spreadsheet readers in Windows. After having a closer look at the file, it turns out to be an encoding issue clearly. As the database was Latin1 encoded, the carriage return was handled as r [shows up as ^M on VI] in some text blobs....

January 9, 2013 · 1 min · 137 words · Me