Search Postgresql Archives

Re: invalid byte sequence for encoding error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Oliver A. Rojo wrote:
Hi!

I've just recently upgraded my database from 7.4.8 to 8.0.1. Im dumping data i got from my old db to my new db but eventually an error occured

ERROR:  invalid byte sequence for encoding "UNICODE": 0xd141

I tried setting the client encoding to UNICODE but to no avail.

I had exactly the same problem (7.4.7 -> 8.1.3). Apparently older pg versions allowed for storing invalid utf-8 in text fields (ie the engine did not check the bytes going in).

I fixed it by fixing the original db and dumping again. If this is not desirable you can of course restore to a clean 7.4.8, fix, dump.

/Nis



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux