| Subject: | proposal: UTF8 to_ascii function |
|---|---|
| From: | "Pavel Stehule" |
| Date: | Mon, 11 Aug 2008 09:39:01 +0200 |
| Newsgroups: | pgsql.hackers |
Hello,
combination functions to_ascii and convert_to is broken now. Problem
is in convert_to function. It doesn't support 8bit output encoding.
Current workaround:
CREATE FUNCTION to_ascii(bytea, name)
RETURNS text AS 'to_ascii_encname' LANGUAGE internal;
SELECT to_ascii(convert_to('Příliš žlutý kůň', 'latin2'),'latin2');
I don't expect column collate for 8.4, so we need to have workable
to_ascii function.
I propose function to_ascii(text, name) that internally convert text
from utf8 encoding when it's necessary.
Regards
Pavel Stehule
--
Sent via pgsql-hackers mailing list (pgsql-hackers@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Proposal: PageLayout footprint, Zdenek Kotala |
|---|---|
| Next by Date: | Re: Proposal: PageLayout footprint, "Heikki Linnakangas" |
| Previous by Thread: | Proposal: PageLayout footprint, Zdenek Kotala |
| Next by Thread: | Re: proposal: UTF8 to_ascii function, Andrew Dunstan |
| Indexes: | [Date] [Thread] [Top] [All Lists] |