AW: AW: Wrong german error message encoding
От | |
---|---|
Тема | AW: AW: Wrong german error message encoding |
Дата | |
Msg-id | 00f101db3c27$b2198690$164c93b0$@gmx.net обсуждение исходный текст |
Ответ на | Re: AW: Wrong german error message encoding (Erik Wienhold <ewie@ewie.name>) |
Список | pgsql-bugs |
That does not help. After doing it typing ä or ß results in wrong characters and the connection fails nonetheless: PS C:\tmp> chcp 1252 Aktive Codepage: 1252. PS C:\tmp> psql -d tr„shableá -U postgres Passwort für Benutzer postgres: psql: Fehler: Verbindung zum Server auf »localhost« (::1), Port 5432 fehlgeschlagen: FATAL: Datenbank »träshableß« existiertnicht But the behaviour of psql is another issue, my original error report is about German error message encoding when connectingdirectly via socket or libpq. Markus -----Ursprüngliche Nachricht----- Von: Erik Wienhold <ewie@ewie.name> Gesendet: Donnerstag, 21. November 2024 15:53 An: radagast42@gmx.net Cc: 'Daniel Gustafsson' <daniel@yesql.se>; pgsql-bugs@lists.postgresql.org Betreff: Re: AW: Wrong german error message encoding On 2024-11-21 13:28 +0100, radagast42@gmx.net wrote: > When using psql from the command line I can't even connect to the > database "träshableß": > > psql -d träshableß -U postgres > Passwort für Benutzer postgres: > psql: Fehler: Verbindung zum Server auf »localhost« (::1), Port 5432 fehlgeschlagen: FATAL: Datenbank »träshableß«existiert nicht > > But in this case I see no garbled error message.... > I have to encode the database name with MS-CP-1252 to connect: > > psql -d träshableß -U postgres > Passwort für Benutzer postgres: > psql (16.4) > Warnung: Konsolencodeseite (850) unterscheidet sich von der Windows- > Codeseite (1252). 8-Bit-Zeichen funktionieren möglicherweise nicht > richtig. Einzelheiten finden Sie auf der psql-Handbuchseite unter > »Notes for Windows users«. > Geben Sie »help« für Hilfe ein. You should set code page 1252 with chcp 1252 You can automate that for new shells by running chcp from your PowerShell profile. Variable $profile gives you the filename. -- Erik
В списке pgsql-bugs по дате отправления: