agora inbox for pgsql-ru-general@postgresql.org  
help / color / mirror / Atom feed
From: Viktor Vislobokov <vvislobokov@parma-telecom.ru>
Cc: pgsql-ru-general <pgsql-ru-general@postgresql.org>
Subject: Re: [pgsql-ru-general] Re: [pgsql-ru-general] Re: [pgsql-ru-general] ILIKE с русскими не работает?
Date: Mon, 25 Apr 2005 14:03:05 +0600
Message-ID: <426CA439.4090105@lukoilperm.ru> (raw)
In-Reply-To: <Pine.GSO.4.62.0504251122190.4489@ra.sai.msu.su>
References: <426C6626.1050903@lukoilperm.ru>
	<Pine.GSO.4.62.0504251058350.4489@ra.sai.msu.su>
	<426C96DC.6030707@lukoilperm.ru>
	<Pine.GSO.4.62.0504251122190.4489@ra.sai.msu.su>


> Ты бы подробнее проблему описал ! Значит, что я понял:
> 1. системная локаль у тебя ru_RU.UTF-8 и она у тебя везде кроме потсгреса
>    работает нормально. Проверь в perl, например.

Работает, например
#!/usr/bin/perl

use utf8;

$s = "Проба";

print uc($s) . "\n";
print lc($s) . "\n";


> 2. как ты делали initdb ?

initdb делается автоматом при первом запуске службы PostgreSQL.
Делается, насколько я понимаю в системной локали, но для PostgreSQL
как ASCII (судя по выводу \l в psql).

> 3. как ты вводил запрос ? Я, например, не знаю, как мне в psql работать
>    в unicode :)

Вводил в psql. Да ничем не отличается работа в UTF-8 локали для пользователя
от любой другой локали. Только вот такими заморочками как с ILIKE.
Базу ессно, создаём с WITH ENCODING 'UTF8';

-- 
С уважением, Виктор





view thread (25+ messages)  latest in thread

Message-ID: <426CA439.4090105@lukoilperm.ru>
Permalink:  ../426CA439.4090105@lukoilperm.ru/
Also on:    postgresql.org/message-id/426CA439.4090105@lukoilperm.ru

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-ru-general@postgresql.org
  Cc: vvislobokov@parma-telecom.ru
  Subject: Re: =?KOI8-R?Q?Re=3A_=5Bpgsql-ru-general=5D_Re=3A_=5Bpgsql-ru-?= =?KOI8-R?Q?general=5D_Re=3A_=5Bpgsql-ru-general=5D_ILIKE_=D3_=D2?= =?KOI8-R?Q?=D5=D3=D3=CB=C9=CD=C9_=CE=C5_=D2=C1=C2=CF=D4=C1=C5=D4=3F?=
  In-Reply-To: <426CA439.4090105@lukoilperm.ru>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox