2009-08-18 18:34:39 +08:00
|
|
|
|
SET client_min_messages = warning;
|
|
|
|
|
\set ECHO none
|
|
|
|
|
\i unaccent.sql
|
|
|
|
|
\set ECHO all
|
|
|
|
|
RESET client_min_messages;
|
|
|
|
|
|
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>');
|