简体   繁体   中英

Postgres PSQL displays invalid chars in windows cmd

I'm using windows 10 - and when I run PSQL from the cmd I'm getting invalid chars: 在此处输入图片说明

My guess is that it's trying to write Hebrew to the command line.

In regional settings of my windows 10 - the Location is set to "United States" the Formats are set to "Hebrew Israel" and the default language for non unicode applications is set to "Hebrew Israel"

How do I get postgres to play nice with this setup?

Follow the instructions from the psql documentation , translated to Hebrew.

Before starting psql ,

  • set the font to “Lucida Console”

  • change the encoding with chcp 1255 .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM