How to transfer data from Database with latin1 character set, to database UTF-8. And on transferring convert data from latin1 to UTF-8 e.g., û->ū, ë->ė, þ->ž, á->į and etc.
MySQL transfer ISO-8859-1 to UTF-8
character-setMySQL
Related Question
- PostgreSQL – Client Unable to Detect UTF-8 Database
- MySQL – Migrating Database with UTF8 Collation and Charset to Full UTF-8
- MySQL – Will Replication Break with Different Character Sets in Master and Slave Tables
- MySQL vs MariaDB – Differences in Character Set Handling
- MySQL – Converting Latin1 (with Latin2 Content) to UTF-8
- MySQL – Converting Character Sets and Foreign Key Constraints
- mysql – Does latin1 Have Performance Benefits Over utf8?
Best Answer
Found a solution. As I looked more into my first DB it had UTF-8 encoding, but all fields in tables was latin1. And data in there was windows-1257. So the solution:
SELECT CONVERT(CAST(pavad as BINARY) USING cp1257) pg_zodynas