Re: errmsg and multi-byte strings. - Mailing list pgsql-general

From Tom Lane
Subject Re: errmsg and multi-byte strings.
Date
Msg-id 20413.1266507725@sss.pgh.pa.us
Whole thread Raw
In response to errmsg and multi-byte strings.  (Ivan Sergio Borgonovo <mail@webthatworks.it>)
List pgsql-general
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

pgsql-general by date:

Previous
From: "Little, Douglas"
Date:
Subject: SQL select return into PSQL variables.
Next
From: Tom Lane
Date:
Subject: Re: Trying to add a type modifier to user created type