Re: BUG #1478: Upper function does not work

Поиск
Список
Период
Сортировка
От Magnus Hagander
Тема Re: BUG #1478: Upper function does not work
Дата
Msg-id 6BCB9D8A16AC4241919521715F4D8BCE476877@algol.sollentuna.se
обсуждение исходный текст
Ответ на BUG #1478: Upper function does not work  ("Tiago Magalhães Vieira" <tiago.vieira@gmail.com>)
Список pgsql-bugs
> Bug reference:      1478
> Logged by:          Tiago Magalh=C3=A3es Vieira
> Email address:      tiago.vieira@gmail.com
> PostgreSQL version: 8.0.0-rc5
> Operating system:   Windows XP
> Description:        Upper function does not work
> Details:=20
>=20
> I have been experiencing some problems with the uppercase=20
> function, when the function has to make simple chars like=20
> 'c','a' etc it returns them in uppercase, but when it has to=20
> handle chars like '=C3=A1', '=C3=A9', '=C3=A7' it does not do so.=20
>=20
> For example I have a field named 'med_type' in the table=20
> 'test' and one of this data in the field 'med_type' is=20
> 'Nutri=C3=A7=C3=A3o'. Then I make the query:
>=20
> SELECT upper(med_type) FROM test;
>=20
> It returns:
>=20
> 'NUTRI=C3=A7=C3=A3O'
>=20
> Even changed de characters enconding from UNICODE to ASCII=20
> and the problem still happens.
>=20
> Is this a bug or am I doing something wrong.

UNICODE is not supported on Win32.
ASCII does not know how to handle those characters.

You need to pick the correct encoding for these characters. Make sure you s=
et the correct locale as well.

Also, you really should upgrade to the release version.

//Magnus

В списке pgsql-bugs по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Bug in ALTER LANGUAGE ... RENAME TO ...;
Следующее
От: "Alexander M. Pravking"
Дата:
Сообщение: ROLLBACK of SET TimeZone