Conversion on the fly from KOI8-R to WIN1251 is invalid - Mailing list pgsql-bugs

From Roman A.Grigorovich
Subject Conversion on the fly from KOI8-R to WIN1251 is invalid
Date
Msg-id 921322029843.20030403235255@atz.msk.ru
Whole thread Raw
Responses Re: Conversion on the fly from KOI8-R to WIN1251 is invalid
List pgsql-bugs
CREATE DATABASE TEST WITH ENCODING =3D 'KOI8';
CREATE TABLE TEST (LOGIN VARCHAR);

SET CLIENT_ENCODING 'KOI8';

INSERT INTO TEST (LOGIN) VALUES ('\206pesto\206');

SELECT LOGIN FROM TEST;
It's return string '=86pesto=86';

Then i try
SET CLIENT_ENCODING =3D 'WIN';

SELECT LOGIN FROM TEST;
It's return string 'pesto '

The code of last char in this string (in decimals) is 32 (space).
Why? Where the chars with code 206 (in octal) ?
Is this bug?

pgsql-bugs by date:

Previous
From: Dennis Gearon
Date:
Subject: Re: [GENERAL] Suggestion
Next
From: drdave
Date:
Subject: Re: 'query was cancelled' - depending on search pattern