Question

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.

Was it helpful?

Solution

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

Licensed under: CC-BY-SA with attribution
Not affiliated with dba.stackexchange
scroll top