I'm using PostgreSQL v15 on win11, but accented character are broken in my DB.
What I've tried so far :
I switched to the "Bêta UTF8" thanks to this post:
https://techcommunity.microsoft.com/t5/windows-powershell/how-to-change-default-code-page-of-powershell-console/m-p/2275773
that point to this stack overflow answer:
Using UTF-8 Encoding (CHCP 65001) in Command Prompt / Windows Powershell (Windows 10)
But ! know that my accented chars are repaired I can't do SQL request : INSERT INTO with some values that contains accented chars!
So I searched.. in the abysses of the web... losts forums, psql documentation, and I found some things about the psql client_encoding, after some times of playing with it, it seems to work perfectly only if I set :
- a new environment variable PGCLIENTENCODING to WIN1252
- and type, everytime I open a new cmd or powershell terminal : chcp 1252
edit : It's the bad way to solve this, I have to stick in UTF8. I'll try something else If someone have some hints.