Click here to Skip to main content
15,886,362 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
Hello everyone and again I
In my SQL terminal, the shell shows scribbles instead of words, you need to set up the encoding, but I don’t know how, I work on windows 11


What I have tried:

I don’t know what to do here, I tried to google but there is nothing adequate there.
Posted
Updated 28-Nov-22 10:02am
Comments
Richard MacCutchan 22-Nov-22 10:23am    
Check the language settings in your system and also in Postgres.
Eva Smirnova 22-Nov-22 13:22pm    
Where exactly should I watch them?
Richard MacCutchan 23-Nov-22 3:27am    
Look at System Settings. It is not at all clear what your problem is, so I am having to guess what you may need to do.
Eva Smirnova 23-Nov-22 6:04am    
postgres=# \b
неверная команда \b
Введите \? для получения справки.
postgres=# \l
╤яшёюъ срч фрээ√ї
╚ь  | ┬ырфхыхЎ | ╩юфшЁютър | LC_COLLATE | LC_CTYPE | ыюъры№ ICU | ╧ЁютрщфхЁ ыюърыш | ╧Ёртр фюёЄєяр
-----------+----------+-----------+---------------------+---------------------+------------+------------------+-----------------------
new_pr | postgres | UTF8 | Russian_Russia.1251 | Russian_Russia.1251 | | libc |
postgres | postgres | UTF8 | Russian_Russia.1251 | Russian_Russia.1251 | | libc |
template0 | postgres | UTF8 | Russian_Russia.1251 | Russian_Russia.1251 | | libc | =c/postgres +
| | | | | | | postgres=CTc/postgres
template1 | postgres | UTF8 | Russian_Russia.1251 | Russian_Russia.1251 | | libc | =c/postgres +
| | | | | | | postgres=CTc/postgres
(4 ёЄЁюъш)


postgres=#

Do you see my scribbles? I need to make a normal encoding of words.
Richard MacCutchan 23-Nov-22 6:18am    
Sorry, there is nothing more I can suggest. It looks like postgres cannot handle some Russian characters.

1 solution

Well...
Use UTF-8 database encoding. See: PostgreSQL: Documentation: 15: 24.3. Character Set Support[^]
Then you'll be able to insert text there in any collation.

More here: MySQL to PostgreSQL | UTF-8 all the way through[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900