From 8c3ab663ab357457974c543041d800f51898e9ff Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Tue, 24 Sep 2002 20:14:59 +0000 Subject: Tweak conversion names to follow the established naming scheme, and document that scheme. --- doc/src/sgml/func.sgml | 109 +++++++++++++++++++++++++++---------------------- 1 file changed, 61 insertions(+), 48 deletions(-) (limited to 'doc/src') diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml index 7b12f80fb78..8d9b2ff382c 100644 --- a/doc/src/sgml/func.sgml +++ b/doc/src/sgml/func.sgml @@ -1,5 +1,5 @@ @@ -861,13 +861,15 @@ PostgreSQL documentation convert(string using conversion_name) text - Change encoding using specified conversion name. - Conversions can be defined by CREATE CONVERSION. - Also there are some pre-defined conversion names. - See for available - conversion names. - convert('PostgreSQL' using iso8859_1_to_utf8) - 'PostgreSQL' in UNICODE(UTF-8) encoding + + Change encoding using specified conversion name. Conversions + can be defined by CREATE CONVERSION. Also + there are some pre-defined conversion names. See for available conversion + names. + + convert('PostgreSQL' using iso_8859_1_to_utf_8) + 'PostgreSQL' in UNICODE (UTF-8) encoding @@ -1291,18 +1293,29 @@ PostgreSQL documentation The to_ascii function supports conversion from - LATIN1, LATIN2, WIN1250 (CP1250) only. + LATIN1, LATIN2, and WIN1250 only. - Available conversion names + Built-in Conversions - conversion - source encoding - destination encoding + Conversion Name + + + The conversion names follow a standard naming scheme: The + official name of the source encoding with all + non-alphanumeric characters replaced by underscores followed + by _to_ followed by the equally processed + destination encoding name. Therefore the names might deviate + from the customary encoding names. + + + + Source Encoding + Destination Encoding @@ -1464,7 +1477,7 @@ PostgreSQL documentation - iso_8859_2_to_win1250 + iso_8859_2_to_windows_1250 LATIN2 WIN1250 @@ -1494,7 +1507,7 @@ PostgreSQL documentation - iso_8859_5_to_koi8r + iso_8859_5_to_koi8_r ISO_8859_5 KOI8 @@ -1512,13 +1525,13 @@ PostgreSQL documentation - iso_8859_5_to_win1251 + iso_8859_5_to_windows_1251 ISO_8859_5 WIN - iso_8859_5_to_win866 + iso_8859_5_to_windows_866 ISO_8859_5 ALT @@ -1554,31 +1567,31 @@ PostgreSQL documentation - koi8r_to_iso_8859_5 + koi8_r_to_iso_8859_5 KOI8 ISO_8859_5 - koi8r_to_mic + koi8_r_to_mic KOI8 MULE_INTERNAL - koi8r_to_utf_8 + koi8_r_to_utf_8 KOI8 UNICODE - koi8r_to_win1251 + koi8_r_to_windows_1251 KOI8 WIN - koi8r_to_win866 + koi8_r_to_windows_866 KOI8 ALT @@ -1650,7 +1663,7 @@ PostgreSQL documentation - mic_to_koi8r + mic_to_koi8_r MULE_INTERNAL KOI8 @@ -1662,19 +1675,19 @@ PostgreSQL documentation - mic_to_win1250 + mic_to_windows_1250 MULE_INTERNAL WIN1250 - mic_to_win1251 + mic_to_windows_1251 MULE_INTERNAL WIN - mic_to_win866 + mic_to_windows_866 MULE_INTERNAL ALT @@ -1848,7 +1861,7 @@ PostgreSQL documentation - utf_8_to_koi8r + utf_8_to_koi8_r UNICODE KOI8 @@ -1872,121 +1885,121 @@ PostgreSQL documentation - utf_8_to_win1250 + utf_8_to_windows_1250 UNICODE WIN1250 - utf_8_to_win1251 + utf_8_to_windows_1251 UNICODE WIN - utf_8_to_win1256 + utf_8_to_windows_1256 UNICODE WIN1256 - utf_8_to_win866 + utf_8_to_windows_866 UNICODE ALT - utf_8_to_win874 + utf_8_to_windows_874 UNICODE WIN874 - win1250_to_iso_8859_2 + windows_1250_to_iso_8859_2 WIN1250 LATIN2 - win1250_to_mic + windows_1250_to_mic WIN1250 MULE_INTERNAL - win1250_to_utf_8 + windows_1250_to_utf_8 WIN1250 UNICODE - win1251_to_iso_8859_5 + windows_1251_to_iso_8859_5 WIN ISO_8859_5 - win1251_to_koi8r + windows_1251_to_koi8_r WIN KOI8 - win1251_to_mic + windows_1251_to_mic WIN MULE_INTERNAL - win1251_to_utf_8 + windows_1251_to_utf_8 WIN UNICODE - win1251_to_win866 + windows_1251_to_windows_866 WIN ALT - win1256_to_utf_8 + windows_1256_to_utf_8 WIN1256 UNICODE - win866_to_iso_8859_5 + windows_866_to_iso_8859_5 ALT ISO_8859_5 - win866_to_koi8r + windows_866_to_koi8_r ALT KOI8 - win866_to_mic + windows_866_to_mic ALT MULE_INTERNAL - win866_to_utf_8 + windows_866_to_utf_8 ALT UNICODE - win866_to_win1251 + windows_866_to_windows_1251 ALT WIN - win874_to_utf_8 + windows_874_to_utf_8 WIN874 UNICODE @@ -2310,7 +2323,7 @@ PostgreSQL documentation regular expressions - pattern matching + -- cgit v1.2.3