2011-02-14 09:06:41 +08:00
|
|
|
|
CREATE EXTENSION unaccent;
|
2009-08-18 18:34:39 +08:00
|
|
|
|
|
2009-08-19 00:00:50 +08:00
|
|
|
|
-- must have a UTF8 database
|
|
|
|
|
SELECT getdatabaseencoding();
|
|
|
|
|
|
2009-08-18 18:34:39 +08:00
|
|
|
|
SET client_encoding TO 'KOI8';
|
|
|
|
|
|
|
|
|
|
SELECT unaccent('foobar');
|
|
|
|
|
SELECT unaccent('<EFBFBD><EFBFBD><EFBFBD><EFBFBD>');
|
|
|
|
|
SELECT unaccent('<EFBFBD><EFBFBD><EFBFBD><EFBFBD>');
|
|
|
|
|
|
|
|
|
|
SELECT unaccent('unaccent', 'foobar');
|
|
|
|
|
SELECT unaccent('unaccent', '<EFBFBD><EFBFBD><EFBFBD><EFBFBD>');
|
|
|
|
|
SELECT unaccent('unaccent', '<EFBFBD><EFBFBD><EFBFBD><EFBFBD>');
|
|
|
|
|
|
|
|
|
|
SELECT ts_lexize('unaccent', 'foobar');
|
|
|
|
|
SELECT ts_lexize('unaccent', '<EFBFBD><EFBFBD><EFBFBD><EFBFBD>');
|
|
|
|
|
SELECT ts_lexize('unaccent', '<EFBFBD><EFBFBD><EFBFBD><EFBFBD>');
|