Re: How can I insert a UTF-8 character with psql?

Поиск
Список
Период
Сортировка
От Ian Barwick
Тема Re: How can I insert a UTF-8 character with psql?
Дата
Msg-id 200306131828.28335.barwick@gmx.net
обсуждение исходный текст
Ответ на Re: How can I insert a UTF-8 character with psql?  (Roland Glenn McIntosh <roland@steeltorch.com>)
Список pgsql-general
On Friday 13 June 2003 15:57, Roland Glenn McIntosh wrote:
> Ian - Thank you very much for your reply.  It only seems to half work,
> however. This Euro sign is giving me a headache.
> I tried both of the following:
>
>         UPDATE my_tbl SET value='\40\254' WHERE NAME LIKE 'curr%';
> and
>         UPDATE my_tbl SET value=encode(decode('20ac','hex'), 'escape')
> WHERE NAME LIKE 'curr%'; and
>         UPDATE my_tbl SET value='\040\254' WHERE NAME LIKE 'curr%';

<reminder_to_self>think before posting</reminder_to_self>

You will of course need to convert the two-byte Unicode UCS-2 value into
the UTF-8 equivalent.


Ian Barwick
barwick@gmx.net


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

Предыдущее
От: Manfred Koizar
Дата:
Сообщение: Re: Table name specified more than once
Следующее
От: Ernest E Vogelsinger
Дата:
Сообщение: Re: Query planner question