Re: Unicode and escaping single quotes - Mailing list pgsql-sql

From Tatsuo Ishii
Subject Re: Unicode and escaping single quotes
Date
Msg-id 20020612.150156.58431751.t-ishii@sra.co.jp
Whole thread Raw
In response to Unicode and escaping single quotes  (Olaf Frączyk <olaf@cbk.poznan.pl>)
Responses Re: Unicode and escaping single quotes  (Olaf Frączyk <olaf@cbk.poznan.pl>)
List pgsql-sql
> I want to put unicode text.
> But in INSERT I have to escape ' (single quote character).
> Should I escape every BYTE which has the value of ASCII single quote
> character, or only real single quote characters (in unicode) - if I have
> a multibyte unicode character, it may be composed (looking at the string
> as an array of bytes) of a normal character and single quote character.

PostgreSQL accepts only UTF-8 encoding, which never has the value of
single quote except the ASCII real single quote.
--
Tatsuo Ishii


pgsql-sql by date:

Previous
From: Josh Berkus
Date:
Subject: Re: make a unique index for foreign keys?
Next
From: Olaf Frączyk
Date:
Subject: Re: Unicode and escaping single quotes