5

试过 select to_ascii('capo','LATIN1'), to_ascii('çapo','LATIN1') 结果不一样......

4

1 回答 1

3

这里

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

然后像这样使用它:

SELECT to_ascii(convert_to('Übermeier', 'latin1'), 'latin1'); 
于 2009-03-18T17:06:44.497 回答