| From: | Erik Wienhold <ewie(at)ewie(dot)name> |
|---|---|
| To: | radagast42(at)gmx(dot)net |
| Cc: | 'Daniel Gustafsson' <daniel(at)yesql(dot)se>, pgsql-bugs(at)lists(dot)postgresql(dot)org |
| Subject: | Re: AW: Wrong german error message encoding |
| Date: | 2024-11-21 14:53:13 |
| Message-ID: | af8c47e7-c0a3-4f96-9d77-9356e1075ee0@ewie.name |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-bugs |
On 2024-11-21 13:28 +0100, radagast42(at)gmx(dot)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
| From | Date | Subject | |
|---|---|---|---|
| Next Message | yuansong | 2024-11-21 15:02:46 | backup server core when redo btree_xlog_insert that type is XLOG_BTREE_INSERT_POST |
| Previous Message | Bruce Momjian | 2024-11-21 14:47:56 | Re: BUG #18711: Attempting a connection with a database name longer than 63 characters now fails |