I
I
Intelide2017-02-04 23:57:13
PostgreSQL
Intelide, 2017-02-04 23:57:13

How to fix character with byte sequence 0xd0 0x92?

Hello, can anyone come across and know how to fix this
when entering Russian characters in the djnago admin panel and pressing save, the error
character with byte sequence 0xd0 0x92 in encoding "UTF8" has no equivalent in encoding "LATIN1"
base on postgres
Thanks in advance

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Melkij, 2017-02-05
@Intelide

Since postgresql said what these encodings are, it means it knows about them. The most obvious is that you have different encodings for the connection and the database itself.
The error itself says that there is no equivalent for the character in the latin1 encoding. In order not to have a brain with many problems - re-create (yes, re-create, the database encoding can only be selected when creating the database) the database with UTF8 encoding.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question