]> granicus.if.org Git - postgresql/commitdiff
Add convert.
authorTatsuo Ishii <ishii@postgresql.org>
Wed, 15 Aug 2001 07:10:12 +0000 (07:10 +0000)
committerTatsuo Ishii <ishii@postgresql.org>
Wed, 15 Aug 2001 07:10:12 +0000 (07:10 +0000)
doc/src/sgml/func.sgml

index 6bb793a9c853a430b4bac4c4f98bd54c446f487c..9423e524fe9f46aca12502ebb7eb7913d2ec70f2 100644 (file)
@@ -1,4 +1,4 @@
-<!-- $Header: /cvsroot/pgsql/doc/src/sgml/func.sgml,v 1.65 2001/08/14 22:21:58 tgl Exp $ -->
+<!-- $Header: /cvsroot/pgsql/doc/src/sgml/func.sgml,v 1.66 2001/08/15 07:10:12 ishii Exp $ -->
 
 <chapter id="functions">
  <title>Functions and Operators</title>
       <entry>A</entry>
      </row>
 
+     <row>
+      <entry>convert(<parameter>string</parameter> <type>text</type>,
+      [<parameter>src_encoding</parameter> <type>name</type>,]
+      <parameter>dest_encoding</parameter> <type>name</type>)</entry>
+      <entry><type>text</type></entry>
+      <entry>Converts string using <parameter>dest_encoding</parameter>.
+      The original encoding is specified by <parameter>src_encoding</parameter>.
+      If <parameter>src_encoding</parameter> is omitted, database encoding
+      is assumed.
+      </entry>
+      <entry>convert('text_in_unicode','UNICODE','LATIN1')</entry>
+      <entry>text_in_unicode (represented in ISO-8859-1)</entry>
+     </row>
+
      <row>
       <entry>initcap(<type>text</type>)</entry>
       <entry><type>text</type></entry>