S
S
sound9012018-12-06 13:36:51
Python
sound901, 2018-12-06 13:36:51

How to solve encoding error on select in postgresql?

In general...
I don't know what has changed, but when selecting, an error pops up: for a character with a sequence of bytes from the encoding "utf8" there is no equivalent in "win1251", how to solve the problem?
Approximately the same garbage when you insert from a csv file into the database ...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
NaName, 2018-12-11
@NaName

new_string = old_string.decode('utf-8') tried?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question