When running psql <database_name>
from the command line I've been getting this warning:
WARNING: Console code page (437) differs from Windows code page (1252) 8-bit characters might not work correctly. See psql reference page "Notes for Windows users" for details.
I found a solution for this found from another question however it only gets rid of the warning for that session and I'm trying to completely get rid of the warning. It's been mentioned that I could go into C:\Program Files\PostgreSQL\9.6\scripts\runpsql.bat
and cmd.exe /c chcp 1252
or chcp 1252
near the top of the batch file to remove this warning, however that has not been working for me.
When executing the batch file, it does print out a line console code page and the warning doesn't appear. However when I run psql [database]
from the command prompt, the warning still persists. Does anyone know how to permanently remove the warning?
I am using PostgreSQL 9.6.1 and Windows 7 64-bit.