errmsg and multi-byte strings.

Started by Ivan Sergio Borgonovoabout 16 years ago2 messagesgeneral
Jump to latest
#1Ivan Sergio Borgonovo
mail@webthatworks.it

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

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Ivan Sergio Borgonovo (#1)
Re: errmsg and multi-byte strings.

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