Re: Conversion on the fly from KOI8-R to WIN1251 is invalid

From: Tatsuo Ishii <t-ishii(at)sra(dot)co(dot)jp>
To: atz(at)atz(dot)msk(dot)ru
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: Conversion on the fly from KOI8-R to WIN1251 is invalid
Date: 2003-04-09 02:31:05
Message-ID: 20030409.113105.41629331.t-ishii@sra.co.jp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

> CREATE DATABASE TEST WITH ENCODING = '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 'pesto';
>
> Then i try
> SET CLIENT_ENCODING = '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?

What is your PostgreSQL version?
--
Tatsuo Ishii

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2003-04-09 04:00:59 Re: ERROR: heap_mark4update: (am)invalid tid, after the 14th update in 7.3.2
Previous Message Tatsuo Ishii 2003-04-09 02:30:59 Re: When to sort texts data encoded in UTF-8, retrieve as