This is a discussion on Re: [pgsql-hackers-win32] UNICODE/UTF-8 on win32 within the pgsql Hackers forums, part of the PostgreSQL category; --> > John Hansen wrote: > > currently, upper/lower does not work with 2+ byte unicode > characters, > > ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| > John Hansen wrote: > > currently, upper/lower does not work with 2+ byte unicode > characters, > > on any OS under the C locale. > > Sure it does. It's just that the defined behavior of the C > locale is often useless in practice. 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. .... John ---------------------------(end of broadcast)--------------------------- TIP 3: if posting/reading through Usenet, please send an appropriate subscribe-nomail command to majordomo@postgresql.org so that your message can get through to the mailing list cleanly |
| ||||
| "John Hansen" <john@geeknet.com.au> writes: >> Sure it does. It's just that the defined behavior of the C >> locale is often useless in practice. > 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. regards, tom lane ---------------------------(end of broadcast)--------------------------- TIP 3: if posting/reading through Usenet, please send an appropriate subscribe-nomail command to majordomo@postgresql.org so that your message can get through to the mailing list cleanly |
| Thread Tools | |
| Display Modes | |
|
|