0

I'm trying to dump a heroku db with heroku db:pull

The problem is that the data that has special character (like 'ñ') are not store propertly.

I see that the local tables are created with default charset=latin1

is there a way that the heroku script create the table with charset utf8?

David Sedeño
  • 495
  • 1
  • 6
  • 19

2 Answers2

1

heroku db:push -t tables mysql://user:pass@localhost/mydb encoding=UTF8 --confirm myapp

kamus
  • 11
  • 1
0

The solution is to set the default charset in mysql server itself like in:

Change MySQL default character set to UTF-8 in my.cnf?

doing that and after restart the local mysql, heroku db:pull will create the tables with the default utf8 charset.

Community
  • 1
  • 1
David Sedeño
  • 495
  • 1
  • 6
  • 19