I am importing data from a CSV file. One of the fields has an accent (Telefónica O2 UK Limited). The application causes an en error when inserting data into a 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')
Entering data through forms works when entering names with accents and umlaut. How do I solve this problem?
Edit
I addressed the problem by converting the file encoding. I uploaded the CSV file to Google documents and exported the file to CSV.
source share