~ overflow ~

Tag: impot

MySQL importing .sql with accents causing issues

by z3n on Dec.30, 2009, under Uncategorized

Problem:

When importing a .sql with entries with accents, like not regular english, it may lead to issues, like:

São Paulo‘ instead of ‘São Paulo

Solution:

Even mysqld default charset being latin1, sometimes it don’t work with accents, depending on the imports you’re doing.

So you may need to force it to fallback to utf8, on my case i just added this to the beggining of the .sql file i was importing:

charset utf8 \c

and it worked just fine.

Note: If you are using asian chars (japanese/chinese specific), then utf8 might not be enough to cover all chars.

Leave a Comment :, , , , , more...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!