Re: 7.3.2 incorrectly counts characters for unicode varchar field - Mailing list pgsql-bugs

From Tom Lane
Subject Re: 7.3.2 incorrectly counts characters for unicode varchar field
Date
Msg-id 10503.1063638619@sss.pgh.pa.us
Whole thread Raw
In response to 7.3.2 incorrectly counts characters for unicode varchar field  ("Matthew Cooper" <matty@cloverworxs.com>)
List pgsql-bugs
"Matthew Cooper" <matty@cloverworxs.com> writes:
> Attached is the UTF-8 encoded sql file in case it got messed up in the mail
> transfer.

Ah, no doubt it did.

This works fine for me, using either 7.3.4 or CVS tip.  Are you sure
that the system knows your client-side encoding is supposed to be UTF8?

uc=# show client_encoding ;
 client_encoding
-----------------
 UNICODE
(1 row)

uc=# create table mgc(f1 varchar(10));
CREATE TABLE
uc=# \i mgc.sql
INSERT 328444 1
uc=# select * from mgc;
          f1
----------------------
 ͈†Õ’ŸÓ£ƒð¿ Íˆ†Õ’ŸÓ£ƒð¿ Ó£ƒð¿ 
(1 row)

uc=# select length(f1) from mgc;
 length
--------
     10
(1 row)


            regards, tom lane

pgsql-bugs by date:

Previous
From: "Christoph Jaeger"
Date:
Subject: Re: Foreign key constraint still active after table row removed
Next
From: "Gaetano Mendola"
Date:
Subject: Re: PostgreSql 7.3.4 & 7.4 on MacOS X