Re: errmsg and multi-byte strings.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Ivan Sergio Borgonovo <mail(at)webthatworks(dot)it>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: errmsg and multi-byte strings.
Date: 2010-02-18 15:42:05
Message-ID: 20413.1266507725@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Ivan Sergio Borgonovo <mail(at)webthatworks(dot)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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2010-02-18 15:46:46 Re: Trying to add a type modifier to user created type
Previous Message Little, Douglas 2010-02-18 15:33:41 SQL select return into PSQL variables.