Re: UTF-8 to ASCII - Mailing list pgsql-general

From Alvaro Herrera
Subject Re: UTF-8 to ASCII
Date
Msg-id 20070511133310.GD4396@alvh.no-ip.org
Whole thread Raw
In response to UTF-8 to ASCII  (Martin Marques <martin@bugs.unl.edu.ar>)
Responses Re: UTF-8 to ASCII
List pgsql-general
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

pgsql-general by date:

Previous
From: Geoffrey
Date:
Subject: Re: Fault Tolerant Postgresql (two machines, two postmasters, one disk array)
Next
From: "Sorin N. Ciolofan"
Date:
Subject: increasing of the shared memory does not solve the problem of "OUT of shared memory"