From: | Paulo Angelo <reddhatt(at)gmail(dot)com> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | UTF8, LATIN1 conversion problems |
Date: | 2009-04-07 21:53:43 |
Message-ID: | 61c1709d0904071453t7e81ed7l68c3edf1676b9e18@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Hi All,
I'm getting some problems with UTF8 and Pgsql for some days. In the 8.3
version these problems became worse.
In the new version,
=> select convert(f0601_desc, 'UTF8', 'LATIN1') from f0601;
gives: ERROR: ... convert(character varying, unknown, unknown) don't exists
and
=> select convert(f0601_desc::bytea, 'UTF8', 'LATIN1'),f0601_desc from
f0601;
gives:
convert | f0601_desc
-------------------+----------------
\343 | ã
(1 registro)
And I dont know what to do with a "\343".
I really wanna do something like:
=> select f0601_desc from f0601 where to_ascii(convert(f0601_desc::bytea,
'UTF8', 'LATIN1')::text,'LATIN1') like 'a';
gives: (0 registro)
What should I do? I'm thinking create a DB with LATIN1 encoding, but UTF8
is better (should be :) ).
Thanx for help.
[]'s
Paulo Angelo
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2009-04-07 22:14:34 | Re: nooby Q: temp tables good for web apps? |
Previous Message | Scott Marlowe | 2009-04-07 21:18:42 | Re: nooby Q: temp tables good for web apps? |