Re: UTF-8 to ASCII

From: "Martin Gainty" <mgainty(at)hotmail(dot)com>
To: "Alvaro Herrera" <alvherre(at)commandprompt(dot)com>, "Martin Marques" <martin(at)bugs(dot)unl(dot)edu(dot)ar>
Cc: <pgsql-general(at)postgresql(dot)org>
Subject: Re: UTF-8 to ASCII
Date: 2007-05-11 15:30:55
Message-ID: BAY133-DAV1449B26D79D3285F3E35EFAE390@phx.gbl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Apparently you will need to implement a UNICODE aware JDBC driver
http://archives.postgresql.org/pgsql-general/2004-01/msg01649.php
Martín

This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed. If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy. Thank you.

----- Original Message -----
From: "Alvaro Herrera" <alvherre(at)commandprompt(dot)com>
To: "Martin Marques" <martin(at)bugs(dot)unl(dot)edu(dot)ar>
Cc: <pgsql-general(at)postgresql(dot)org>
Sent: Friday, May 11, 2007 9:33 AM
Subject: Re: [GENERAL] UTF-8 to ASCII

> Martin Marques escribió:
>> I have a doubt about the function to_ascii() and what the documentation
>> says.
>>
>> Basically, I passed my DB from latin1 to UTF-8, and I started getting an
>> error when using the to_ascii() function on a field of one of my DB [1]:
>>
>> ERROR: la conversión de codificación de UTF8 a ASCII no está soportada
>
> Well, the to_ascii() documentation says that it only supports LATIN1,
> LATIN2, LATIN9, and WIN1250. This is on a footnote.
>
> I do think that there's something strange on the vicinity anyway,
> because using convert() expliciting the conversion function gives a
> mismatching error for me (local environment is UTF8, as is
> client_encoding):
>
> alvherre=# select convert('Martín' using utf8_to_ascii);
> ERROR: character 0xc3 of encoding "MULE_INTERNAL" has no equivalent in
> "SQL_ASCII"
>
>
> Why on earth is it talking about MULE_INTERNAL?
>
> --
> Alvaro Herrera
> http://www.CommandPrompt.com/
> PostgreSQL Replication, Consulting, Custom Development, 24x7 support
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo(at)postgresql(dot)org so that your
> message can get through to the mailing list cleanly
>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Joshua D. Drake 2007-05-11 17:08:14 Re: Fault Tolerant Postgresql (two machines, two postmasters, one disk array)
Previous Message Peter Childs 2007-05-11 14:37:54 Re: are foreign keys realized as indexes?