In order to [address a known issue](https://stackoverflow.com/a/20794121/4709762), I've added the following line to the windows equivalent of the [.psqlrc](https://wiki.postgresql.org/wiki/Psqlrc) (located at `%APPDATA%\postgresql\psqlrc.conf` [^HT^](http://mladenuzelac.blogspot.com/2016/01/psqlrc-in-windows.html)).
\echo `chcp 1252`
This works to suppress the console code page warning that would otherwise appear, but sadly it leaves the console code page pinned to 1252 when exiting the psql client.
I would like to set the code page back to 850 when exiting the psql client. I _could_ get fancy with wrapper scripts or aliases; but I'd prefer to avoid that if possible. Is there a psql client equivalent to something like [.bash_logout](https://unix.stackexchange.com/a/424102/348605)?