I'm trying to parse a big JSON file, which has all kinds of languages (russian, swedish etc). I read this JSON file using PHP, make queries out of the data, save the queries into a text file and load the data into a mysql database from this sql file.
It all seems to work, except for the special characters. If I cat the sql file (on a mac terminal), I can see the characters correctly. If I open the file in vi, the characters are all jumbled up. And if I try to load the SQL file into mysql, I get errors.
My table is set to UTF8. What other steps do I need to take to fix this problem?