| From: | Tatsuo Ishii <t-ishii(at)sra(dot)co(dot)jp> |
|---|---|
| To: | sva(at)netpointers(dot)com |
| Cc: | tgl(at)sss(dot)pgh(dot)pa(dot)us, pgsql-sql(at)postgresql(dot)org |
| Subject: | Re: Scadinavian characters in regular expressions |
| Date: | 2002-04-10 01:06:52 |
| Message-ID: | 20020410100652N.t-ishii@sra.co.jp |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | 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
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Christopher Kings-Lynne | 2002-04-10 02:08:26 | Re: Help To Out |
| Previous Message | Rajesh Kumar Mallah | 2002-04-09 21:46:34 | new problem! Is there any Faster workaround ?? |