pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Biagioni <andrew.biagioni@e-greek.net>
To: pgsql-admin@postgresql.org
Subject: Mis-interpreted extended character
Date: Sat, 13 Dec 2003 10:18:18 -0500
Message-ID: <3FDB2DBA.8000505@e-greek.net> (raw)

Our database ( (PostgreSQL) 7.3.5 ) uses Unicode encoding:

    egreek=# \l
             List of databases
        Name     |  Owner   | Encoding
    -------------+----------+----------
     egreek      | andrew   | UNICODE

For some reason, If I try to use an extended character (ASCII code > 
127) in a string, I get this peculiar result:

    egreek=# SELECT  LOWER ( 'Niño' );
    egreek'#

(note:  it fails to see the closing single-quote character;  I hit 
CTRL-C to quit the operation)

and:

    egreek=# SELECT  LOWER ( 'Niño ' );
    ERROR:  Unicode >= 0x10000 is not supported

(note:  I added a space before the closing quote).

It looks to me like the 'ñ' character (spanish n with tilde - ASCII 164, 
as far as I can tell) is messing with the parser somehow.

Furthermore -- this is data coming from a form in a web site used 
globally, so I have little control over what is passed to me (me = 
PostgreSQL DB).  I can't (without lotsa hassles) "demand" that 
higher-ASCII characters be encoded on the way in, and decoded on the way 
out.

Any suggestions/info/hints?

Thanks,

                 Andrew

view thread (3+ messages)  latest in thread

Message-ID: <3FDB2DBA.8000505@e-greek.net>
Permalink:  ../3FDB2DBA.8000505@e-greek.net/
Also on:    postgresql.org/message-id/3FDB2DBA.8000505@e-greek.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: andrew.biagioni@e-greek.net
  Subject: Re: Mis-interpreted extended character
  In-Reply-To: <3FDB2DBA.8000505@e-greek.net>
  References: <3FDB2DBA.8000505@e-greek.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox