B
B
blabs2017-05-06 11:58:52
PostgreSQL
blabs, 2017-05-06 11:58:52

How to set the correct encoding for uploaded CSV files?

Hello, We have
added the function of exporting data to CSV., but the output is not the correct encoding. We use Symfony, Postgres. We look at the file on MacOS, Windows.
Tell me, what export settings need to be done in order for the data to be uploaded to CSV with normal encoding under MacOS / Windows?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
ky0, 2017-05-06
@ky0

Wrong encoding - what is it? Not the one that is used in the database or not the one you need?
In general, when generating a CSV (for example, using COPY), the encoding can be explicitly specified in the corresponding parameter .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question