pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedAW: Wrong german error message encoding
2+ messages / 2 participants
[nested] [flat]
* AW: Wrong german error message encoding
@ 2024-11-21 12:28 radagast42@gmx.net
0 siblings, 1 reply; 2+ messages in thread
From: radagast42@gmx.net @ 2024-11-21 12:28 UTC (permalink / raw)
To: 'Daniel Gustafsson' <daniel@yesql.se>; +Cc: pgsql-bugs@lists.postgresql.org
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.
träshableÃY=#
In the scenario given in my bug report I connected to PostgreSQL via socket interface or libpq.
PgAdmin correctly shows the database name as "träshableß".
Markus Rips
-----Ursprüngliche Nachricht-----
Von: Daniel Gustafsson <daniel@yesql.se>
Gesendet: Mittwoch, 20. November 2024 10:00
An: radagast42@gmx.net
Cc: pgsql-bugs@lists.postgresql.org
Betreff: Re: Wrong german error message encoding
> On 20 Nov 2024, at 08:49, <radagast42@gmx.net> <radagast42@gmx.net> wrote:
>
> Hello.
> I think there is a wrong encoding for (at least) German localized error messages.
> Setup:
> - Standard installation of PostgreSQL 16.4 on a German Windows 10.
> - Create a new database with at least one German “Umlaut” in it with pgAdmin, e.g. “träshableß”
Do you get the same error message issue when connecting with psql instead og PGAdmin?
--
Daniel Gustafsson
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: AW: Wrong german error message encoding
@ 2024-11-21 14:53 Erik Wienhold <ewie@ewie.name>
parent: radagast42@gmx.net
0 siblings, 0 replies; 2+ messages in thread
From: Erik Wienhold @ 2024-11-21 14:53 UTC (permalink / raw)
To: radagast42@gmx.net; +Cc: Daniel Gustafsson <daniel@yesql.se>; pgsql-bugs@lists.postgresql.org
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
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2024-11-21 14:53 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2024-11-21 12:28 AW: Wrong german error message encoding radagast42@gmx.net
2024-11-21 14:53 ` Erik Wienhold <ewie@ewie.name>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox