Hi there,

I've  managed to get postgresql working with UTF8 and KOI8.
Here is some mini-howto:
http://www.sai.msu.su/~megera/postgres/utf8.html

	Regards,
		Oleg
_____________________________________________________________
Oleg Bartunov, sci.researcher, hostmaster of AstroNet,
Sternberg Astronomical Institute, Moscow University (Russia)
Internet: oleg@sai.msu.su, http://www.sai.msu.su/~megera/
phone: +007(095)939-16-83, +007(095)939-23-83

Fri, 13 Jun 2003 22:02:09 +0400 (MSD)
Oleg Bartunov <oleg@sai.msu.su>
UTF8 and KOI8 mini-howto
В Птн, 13.06.2003, в 20:02, Oleg Bartunov пишет:
> Hi there,
> 
> I've  managed to get postgresql working with UTF8 and KOI8.
> Here is some mini-howto:
> http://www.sai.msu.su/~megera/postgres/utf8.html

The correct name for UTF-8 locales is xx_XX.UTF-8, not upper case and
the minus.

-- 
Markus Bertheau.
Berlin, Berlin.
Germany.

15 Jun 2003 21:08:03 +0200
Markus Bertheau <twanger@bluetwanger.de>
Re: [HACKERS] UTF8 and KOI8 mini-howto
В Вск, 15.06.2003, в 21:08, Markus Bertheau пишет:

> The correct name for UTF-8 locales is xx_XX.UTF-8, not upper case and
                                               s/not/note/
> the minus.
-- 
Markus Bertheau.
Berlin, Berlin.
Germany.

15 Jun 2003 21:13:01 +0200
Markus Bertheau <twanger@bluetwanger.de>
Re: [HACKERS] UTF8 and KOI8 mini-howto
В Птн, 13.06.2003, в 20:02, Oleg Bartunov пишет:
> Hi there,
> 
> I've  managed to get postgresql working with UTF8 and KOI8.
> Here is some mini-howto:
> http://www.sai.msu.su/~megera/postgres/utf8.html

select lower('АВЫАВЫА'); returns 'АВЫАВЫА' with this setup here, any
idea why this is the case?

-- 
Markus Bertheau.
Berlin, Berlin.
Germany.

15 Jun 2003 21:17:59 +0200
Markus Bertheau <twanger@bluetwanger.de>
Re: [HACKERS] UTF8 and KOI8 mini-howto
Markus,

I have used ru_RU.utf8 which recognized by system,  at least that name
was generated by localedef program.

Oleg
On Sun, 15 Jun 2003, Markus Bertheau wrote:

> О©╫О©╫ О©╫О©╫б╨О©╫О©╫, 15.06.2003, О©╫О©╫ 21:08, Markus Bertheau О©╫О©╫О©╫О©╫б╙О©╫О©╫б╤:
>
> > The correct name for UTF-8 locales is xx_XX.UTF-8, not upper case and
>                                                s/not/note/
> > the minus.
>

	Regards,
		Oleg
_____________________________________________________________
Oleg Bartunov, sci.researcher, hostmaster of AstroNet,
Sternberg Astronomical Institute, Moscow University (Russia)
Internet: oleg@sai.msu.su, http://www.sai.msu.su/~megera/
phone: +007(095)939-16-83, +007(095)939-23-83

Mon, 16 Jun 2003 02:34:01 +0400 (MSD)
Oleg Bartunov <oleg@sai.msu.su>
Re: [HACKERS] UTF8 and KOI8 mini-howto
On Sun, 15 Jun 2003, Markus Bertheau wrote:

> О©╫О©╫ О©╫О©╫б╤О©╫О©╫, 13.06.2003, О©╫О©╫ 20:02, Oleg Bartunov О©╫О©╫О©╫О©╫б╙О©╫О©╫б╤:
> > Hi there,
> >
> > I've  managed to get postgresql working with UTF8 and KOI8.
> > Here is some mini-howto:
> > http://www.sai.msu.su/~megera/postgres/utf8.html
>
> select lower('О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫'); returns 'О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫' with this setup here, any
> idea why this is the case?

No idea :-) I just tested sorting and didn't even tried upper,lower.
I suspect the problem is real. At least, perl (5.6.1) handles uc,lc function
using special pragma 'use utf8'.

Let me know if you get any success.

	Oleg

>
>

	Regards,
		Oleg
_____________________________________________________________
Oleg Bartunov, sci.researcher, hostmaster of AstroNet,
Sternberg Astronomical Institute, Moscow University (Russia)
Internet: oleg@sai.msu.su, http://www.sai.msu.su/~megera/
phone: +007(095)939-16-83, +007(095)939-23-83

Mon, 16 Jun 2003 02:52:29 +0400 (MSD)
Oleg Bartunov <oleg@sai.msu.su>
Re: [HACKERS] UTF8 and KOI8 mini-howto
Marcus,

I suspect lower,upper will not works with Unicode.
Read thread http://fts.postgresql.org/db/msg.html?mid=1070198
Tatsuo is the right person to ask.


	Oleg
On Mon, 16 Jun 2003, Oleg Bartunov wrote:

> On Sun, 15 Jun 2003, Markus Bertheau wrote:
>
> > О©╫О©╫ О©╫О©╫б╤О©╫О©╫, 13.06.2003, О©╫О©╫ 20:02, Oleg Bartunov О©╫О©╫О©╫О©╫б╙О©╫О©╫б╤:
> > > Hi there,
> > >
> > > I've  managed to get postgresql working with UTF8 and KOI8.
> > > Here is some mini-howto:
> > > http://www.sai.msu.su/~megera/postgres/utf8.html
> >
> > select lower('О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫'); returns 'О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫' with this setup here, any
> > idea why this is the case?
>
> No idea :-) I just tested sorting and didn't even tried upper,lower.
> I suspect the problem is real. At least, perl (5.6.1) handles uc,lc function
> using special pragma 'use utf8'.
>
> Let me know if you get any success.
>
> 	Oleg
>
> >
> >
>
> 	Regards,
> 		Oleg
> _____________________________________________________________
> Oleg Bartunov, sci.researcher, hostmaster of AstroNet,
> Sternberg Astronomical Institute, Moscow University (Russia)
> Internet: oleg@sai.msu.su, http://www.sai.msu.su/~megera/
> phone: +007(095)939-16-83, +007(095)939-23-83
>
> ---------------------------(end of broadcast)---------------------------
> TIP 9: the planner will ignore your desire to choose an index scan if your
>       joining column's datatypes do not match
>

	Regards,
		Oleg
_____________________________________________________________
Oleg Bartunov, sci.researcher, hostmaster of AstroNet,
Sternberg Astronomical Institute, Moscow University (Russia)
Internet: oleg@sai.msu.su, http://www.sai.msu.su/~megera/
phone: +007(095)939-16-83, +007(095)939-23-83

Mon, 16 Jun 2003 03:26:51 +0400 (MSD)
Oleg Bartunov <oleg@sai.msu.su>
Re: [HACKERS] UTF8 and KOI8 mini-howto
В Пнд, 16.06.2003, в 01:26, Oleg Bartunov пишет:
> Markus,
> 
> I suspect lower,upper will not works with Unicode.

It doesn't work with KOI8-R here, too.

-- 
Markus Bertheau.
Berlin, Berlin.
Germany.

16 Jun 2003 01:53:34 +0200
Markus Bertheau <twanger@bluetwanger.de>
Re: [HACKERS] UTF8 and KOI8 mini-howto
On Mon, 16 Jun 2003, Markus Bertheau wrote:

> О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫, 16.06.2003, О©╫О©╫ 01:26, Oleg Bartunov О©╫О©╫О©╫О©╫б╙О©╫О©╫б╤:
> > Markus,
> >
> > I suspect lower,upper will not works with Unicode.
>
> It doesn't work with KOI8-R here, too.
>

What ? It works for me for years ! Did you check your system locale ?

>

	Regards,
		Oleg
_____________________________________________________________
Oleg Bartunov, sci.researcher, hostmaster of AstroNet,
Sternberg Astronomical Institute, Moscow University (Russia)
Internet: oleg@sai.msu.su, http://www.sai.msu.su/~megera/
phone: +007(095)939-16-83, +007(095)939-23-83

Mon, 16 Jun 2003 09:57:55 +0400 (MSD)
Oleg Bartunov <oleg@sai.msu.su>
Re: [HACKERS] UTF8 and KOI8 mini-howto