I've been trying to migrate my MySQL to Postgres, and from what I found, the taps gem.
Unfortunately, it is failing on basically every single table with user data in it with some sort of this exception
PG::Error: ERROR: invalid byte sequence for encoding "UTF8": 0xed2020 (Sequel::DatabaseError)
The invalid character is different in every table, but the exception is the same.
This is not a duplicate of other PG::Error: ERROR: invalid byte sequence for encoding
questions, since every single one of them mentions the use of Iconv.iconv("UTF8...", content)
to force the encoding. But I can't do that since I'm using taps for the import.
Also one side note, I tried doing mysqldump --compatible=postgres
, but it fails on every single query when I try to import it back into Postgres.
I am using MySQL 5.1.63 and PostgreSQL 9.1.4.