Обсуждение: errmsg and multi-byte strings.

Поиск
Список
Период
Сортировка

errmsg and multi-byte strings.

От
Ivan Sergio Borgonovo
Дата:
How am I supposed to output multibyte strings in an errmsg (and Co.)
as in

errmsg("operator not permitted '%s'", mbstring)

thanks

--
Ivan Sergio Borgonovo
http://www.webthatworks.it


Re: errmsg and multi-byte strings.

От
Tom Lane
Дата:
Ivan Sergio Borgonovo <mail@webthatworks.it> writes:
> How am I supposed to output multibyte strings in an errmsg (and Co.)
> as in

> errmsg("operator not permitted '%s'", mbstring)

As long as it's in the current database encoding, you just do it,
just like that.

            regards, tom lane