There are many online articles that talk about solving the following error:
String contains invalid or unsupported UTF-8 codepoints.
Bad UTF-8 hex sequence: a4 (error 3)
Unfortunately they talk about solving this issue for the COPY
command, however I get the same issue with an INSERT INTO
.
The solution for the COPY
command talks about using the ACCEPTINVCHARS
option, however there doesn't seem to be an equivalent for the INSERT INTO
statement.
If baffles me that there is no real concept of NVARCHAR
in Redshift which would ultimately solve this problem, so I want to know if anyone else has come up with a good solution for dealing with inserting invalid characters using INSERT INTO
.