Encoding error PostgreSQL 8.4
Posted
by KandadaBoggu
on Stack Overflow
See other posts from Stack Overflow
or by KandadaBoggu
Published on 2010-05-10T19:13:47Z
Indexed on
2010/05/10
19:34 UTC
Read the original article
Hit count: 373
ruby-on-rails
|postgresql
I am importing data from a CSV file. One of the fields has an accent(Telefónica O2 UK Limited). The application throws en error while inserting the data to the table.
PGError: ERROR: invalid byte sequence for encoding "UTF8": 0xf36e6963
HINT: This error can also happen if the byte sequence does not match the
encoding expected by the server, which is controlled by "client_encoding".
: INSERT INTO "companies" ("name", "validated")
VALUES(E'Telef?nica O2 UK Limited', 't')
How do I workaround this issue?
© Stack Overflow or respective owner