Re: 7.3.2 incorrectly counts characters for unicode varchar field

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: 7.3.2 incorrectly counts characters for unicode varchar field
Дата
Msg-id 10503.1063638619@sss.pgh.pa.us
обсуждение исходный текст
Ответ на 7.3.2 incorrectly counts characters for unicode varchar field  ("Matthew Cooper" <matty@cloverworxs.com>)
Список 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 по дате отправления:

Предыдущее
От: "Christoph Jaeger"
Дата:
Сообщение: Re: Foreign key constraint still active after table row removed
Следующее
От: "Gaetano Mendola"
Дата:
Сообщение: Re: PostgreSql 7.3.4 & 7.4 on MacOS X