'psql in command line doesn't apply polish letters

Hi my database is setup as UTF-8 encoding. I use cmd (windows) and ssh to connect to my postgres database. In CMD all polish letters work fine (ś,ą,ż...). the problem is when I connect with my database by:

psql -U database;

then polish letters don't exist, and I do not know how, any ideas why? ps. when I use PGAdmin polish letters work fine, but if is possible I prefer to use command line



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source