Re: Unicode and escaping single quotes

From: Tatsuo Ishii <t-ishii(at)sra(dot)co(dot)jp>
To: olaf(at)cbk(dot)poznan(dot)pl
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Unicode and escaping single quotes
Date: 2002-06-12 06:01:56
Message-ID: 20020612.150156.58431751.t-ishii@sra.co.jp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Olaf Frączyk 2002-06-12 07:28:53 Re: Unicode and escaping single quotes
Previous Message Josh Berkus 2002-06-12 00:24:34 Re: make a unique index for foreign keys?