Re: Scadinavian characters in regular expressions - Mailing list pgsql-sql

From Tatsuo Ishii
Subject Re: Scadinavian characters in regular expressions
Date
Msg-id 20020410100652N.t-ishii@sra.co.jp
Whole thread Raw
In response to Re: Scadinavian characters in regular expressions  (Søren Vainio <sva@Netpointers.com>)
List pgsql-sql
> There is obviously a problem with the scecial characters.
> The query SELECT 'oneå two three' ~ '^[^ ]+[ ][^ ]+$';
> produced FALSE on a database with ENCODING = 'LATIN1' and TRUE on a database
> with ENCODING = 'UNICODE'.
>
> Do you have a suggestion to how I can find the count of two-word strings
> with ENCODING = 'UNICODE'?

I see no problem here.

SELECT 'oneå two three' ~ '^[^ ]+[ ][^ ]+$';?column?
----------f
(1 row)

SELECT 'oneå three' ~ '^[^ ]+[ ][^ ]+$';?column?
----------t
(1 row)

(The database encoding is UNICODE)

This is PostgreSQL 7.1.3/7.2.1 running on a Linux box. I guess you
have some problems with your installation or platform.
--
Tatsuo Ishii


pgsql-sql by date:

Previous
From: Rajesh Kumar Mallah
Date:
Subject: new problem! Is there any Faster workaround ??
Next
From: "Christopher Kings-Lynne"
Date:
Subject: Re: Help To Out