Unix Technical Forum

Re: [pgsql-hackers-win32] UNICODE/UTF-8 on win32

This is a discussion on Re: [pgsql-hackers-win32] UNICODE/UTF-8 on win32 within the pgsql Hackers forums, part of the PostgreSQL category; --> > > select upper('æøå'); > > ERROR: invalid multibyte character for locale > > HINT: The server's LC_CTYPE locale ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Hackers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-11-2008, 03:52 AM
John Hansen
 
Posts: n/a
Default Re: [pgsql-hackers-win32] UNICODE/UTF-8 on win32

> > select upper('æøå');
> > ERROR: invalid multibyte character for locale
> > HINT: The server's LC_CTYPE locale is probably

> incompatible with the database encoding.
>
> > Consequently it seems that is does not work.

>
> "It fails on my machine" should not be read as "it doesn't
> work for anyone".
> It all depends on how your local mbstowcs() works.


Ok,... Do you have an example of a system on which it works?


.... John

---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to majordomo@postgresql.org)

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-11-2008, 03:52 AM
Tom Lane
 
Posts: n/a
Default Re: [pgsql-hackers-win32] UNICODE/UTF-8 on win32

"John Hansen" <john@geeknet.com.au> writes:
>> "It fails on my machine" should not be read as "it doesn't
>> work for anyone".
>> It all depends on how your local mbstowcs() works.


> Ok,... Do you have an example of a system on which it works?


On HPUX 10.20, mbstowcs seems to treat all byte values as single-byte
characters in C locale, so my sample-of-one says that it works
everywhere ;-).

Nonetheless, it's clear that in C locale mbstowcs cannot be buying us
anything compared to using the old <ctype.h> macros, so I'm fine with
adding a check on the locale as per previous discussion.

regards, tom lane

---------------------------(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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 03:10 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com