Re: Queries with Regular Expressions - Mailing list pgsql-general

From Tom Lane
Subject Re: Queries with Regular Expressions
Date
Msg-id 1506.1144356610@sss.pgh.pa.us
Whole thread Raw
In response to Re: Queries with Regular Expressions  ("John D. Burger" <john@mitre.org>)
List pgsql-general
"John D. Burger" <john@mitre.org> writes:
>> My queries are utf-8 an the database is SQL_ASCII.

> I suspect the bracketed expression is turning into [aXY], where XY is
> the two-byte sequence corresponding to � in UTF8.

That's what it looks like to me.  You can hardly blame the database for
this, when you haven't clued it in that you're using UTF8.

> I don't know if a UTF8 database will handle this correctly or not.

I believe that it will work in recent PG releases (7.4 and up).

            regards, tom lane

pgsql-general by date:

Previous
From: Mark Harrison
Date:
Subject: posgresql <-> oracle
Next
From: "Silas Justiniano"
Date:
Subject: Re: Queries with Regular Expressions