I have a Java application where I run a COPY command. In this command, I copy the query result to stdout in csv format.
COPY (<query>) to stdout (format csv).
In some of the columns, I have unicode characters, which, once I read the csv file, are represented as replacement characters
(�).
How can I prevent this behavior?
New contributor
Apollyon is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
1