How to manually insert an UTF-8 character into an SQL statement?

Поиск
Список
Период
Сортировка
От Alban Hertroys
Тема How to manually insert an UTF-8 character into an SQL statement?
Дата
Msg-id 41EFB6B8.3050202@magproductions.nl
обсуждение исходный текст
Ответы Re: How to manually insert an UTF-8 character into an SQL statement?
Re: How to manually insert an UTF-8 character into an SQL statement?
Список pgsql-general
I'm trying to insert a record that contains an ô (o circumflex) into a
table using the psql client.
I also tried with phppgadmin and pgadmin, but both can't do this. They
insert a HTML entity and error out respectively. Not what I had in mind...

Supposedly I should be able to type:
INSERT INTO table (name) VALUES ('C\0x00f4te d''Azur');
but all I manage to achieve is inserting a capital 'C'...

It doesn't seem to matter to which encoding I set psql either.
What am I doing wrong?

Alban.


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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: [ADMIN] Oracle and Postgresql Play Nice Together on Same Computer?
Следующее
От: Aaron Bingham
Дата:
Сообщение: Re: Duplicate counting