Question

Tried select to_ascii('capo','LATIN1'), to_ascii('çapo','LATIN1') and the results are different....

Was it helpful?

Solution

Look here.

CREATE FUNCTION to_ascii(bytea, name)
RETURNS text STRICT AS 'to_ascii_encname' LANGUAGE internal;

and then just use it like this:

SELECT to_ascii(convert_to('Übermeier', 'latin1'), 'latin1'); 
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top