I'm beginner in SQL. I would like to import a CSV file with Japanese text to a PostgreSQL table. I created a table and tried importing the CSV but this error exit:
ERROR:  invalid byte sequence for encoding "UTF8": 0x8c
CONTEXT:  COPY tTokyoDir, line 1
********** Error **********
ERROR: invalid byte sequence for encoding "UTF8": 0x8c
SQL state: 22021
Context: COPY tTokyoDir, line 1
Can anyone help?
iconv) before importing it. Or you will have to set up the database so that it expects the correct Japanese code set (but then it won't be able to store text from other languages such as Hebrew, Arabic or Russian that use letters not found in Japanese). If the data is supposed to be UTF-8, then there's a bug in the code generating the 'UTF-8' data; you can't have a byte 0x8C (a continuation byte) as the first byte of a character, but that's what you have.