|
|
|
@ -1,4 +1,4 @@ |
|
|
|
<!-- $PostgreSQL: pgsql/doc/src/sgml/charset.sgml,v 2.46 2004/11/15 06:32:13 neilc Exp $ --> |
|
|
|
<!-- $PostgreSQL: pgsql/doc/src/sgml/charset.sgml,v 2.47 2004/12/27 22:30:10 tgl Exp $ --> |
|
|
|
|
|
|
|
|
|
|
|
<chapter id="charset"> |
|
|
|
<chapter id="charset"> |
|
|
|
<title>Localization</> |
|
|
|
<title>Localization</> |
|
|
|
@ -72,14 +72,15 @@ initdb --locale=sv_SE |
|
|
|
locale then the specifications look like this: |
|
|
|
locale then the specifications look like this: |
|
|
|
<literal>cs_CZ.ISO8859-2</>. What locales are available under what |
|
|
|
<literal>cs_CZ.ISO8859-2</>. What locales are available under what |
|
|
|
names on your system depends on what was provided by the operating |
|
|
|
names on your system depends on what was provided by the operating |
|
|
|
system vendor and what was installed. |
|
|
|
system vendor and what was installed. (On most systems, the command |
|
|
|
|
|
|
|
<literal>locale -a</> will provide a list of available locales.) |
|
|
|
</para> |
|
|
|
</para> |
|
|
|
|
|
|
|
|
|
|
|
<para> |
|
|
|
<para> |
|
|
|
Occasionally it is useful to mix rules from several locales, e.g., |
|
|
|
Occasionally it is useful to mix rules from several locales, e.g., |
|
|
|
use English collation rules but Spanish messages. To support that, a |
|
|
|
use English collation rules but Spanish messages. To support that, a |
|
|
|
set of locale subcategories exist that control only a certain |
|
|
|
set of locale subcategories exist that control only a certain |
|
|
|
aspect of the localization rules. |
|
|
|
aspect of the localization rules: |
|
|
|
|
|
|
|
|
|
|
|
<informaltable> |
|
|
|
<informaltable> |
|
|
|
<tgroup cols="2"> |
|
|
|
<tgroup cols="2"> |
|
|
|
@ -90,7 +91,7 @@ initdb --locale=sv_SE |
|
|
|
</row> |
|
|
|
</row> |
|
|
|
<row> |
|
|
|
<row> |
|
|
|
<entry><envar>LC_CTYPE</></> |
|
|
|
<entry><envar>LC_CTYPE</></> |
|
|
|
<entry>Character classification (What is a letter? The upper-case equivalent?)</> |
|
|
|
<entry>Character classification (What is a letter? Its upper-case equivalent?)</> |
|
|
|
</row> |
|
|
|
</row> |
|
|
|
<row> |
|
|
|
<row> |
|
|
|
<entry><envar>LC_MESSAGES</></> |
|
|
|
<entry><envar>LC_MESSAGES</></> |
|
|
|
@ -154,7 +155,7 @@ initdb --locale=sv_SE |
|
|
|
environment variables seen by the server, not by the environment |
|
|
|
environment variables seen by the server, not by the environment |
|
|
|
of any client. Therefore, be careful to configure the correct locale settings |
|
|
|
of any client. Therefore, be careful to configure the correct locale settings |
|
|
|
before starting the server. A consequence of this is that if |
|
|
|
before starting the server. A consequence of this is that if |
|
|
|
client and server are set up to different locales, messages may |
|
|
|
client and server are set up in different locales, messages may |
|
|
|
appear in different languages depending on where they originated. |
|
|
|
appear in different languages depending on where they originated. |
|
|
|
</para> |
|
|
|
</para> |
|
|
|
|
|
|
|
|
|
|
|
@ -181,7 +182,7 @@ initdb --locale=sv_SE |
|
|
|
</note> |
|
|
|
</note> |
|
|
|
|
|
|
|
|
|
|
|
<para> |
|
|
|
<para> |
|
|
|
To enable messages translated to the user's preferred language, |
|
|
|
To enable messages to be translated to the user's preferred language, |
|
|
|
<acronym>NLS</acronym> must have been enabled at build time. This |
|
|
|
<acronym>NLS</acronym> must have been enabled at build time. This |
|
|
|
choice is independent of the other locale support. |
|
|
|
choice is independent of the other locale support. |
|
|
|
</para> |
|
|
|
</para> |
|
|
|
@ -234,8 +235,8 @@ initdb --locale=sv_SE |
|
|
|
changed without repeating <command>initdb</>. Other locale |
|
|
|
changed without repeating <command>initdb</>. Other locale |
|
|
|
settings including <envar>LC_MESSAGES</> and <envar>LC_MONETARY</> |
|
|
|
settings including <envar>LC_MESSAGES</> and <envar>LC_MONETARY</> |
|
|
|
are initially determined by the environment the server is started |
|
|
|
are initially determined by the environment the server is started |
|
|
|
in. You can check the <envar>LC_COLLATE</> and <envar>LC_CTYPE</> |
|
|
|
in, but can be changed on-the-fly. You can check the active locale |
|
|
|
settings of a database using the <command>SHOW</> command. |
|
|
|
settings using the <command>SHOW</> command. |
|
|
|
</para> |
|
|
|
</para> |
|
|
|
|
|
|
|
|
|
|
|
<para> |
|
|
|
<para> |
|
|
|
@ -256,9 +257,9 @@ initdb --locale=sv_SE |
|
|
|
Maintaining catalogs of message translations requires the on-going |
|
|
|
Maintaining catalogs of message translations requires the on-going |
|
|
|
efforts of many volunteers that want to see |
|
|
|
efforts of many volunteers that want to see |
|
|
|
<productname>PostgreSQL</> speak their preferred language well. |
|
|
|
<productname>PostgreSQL</> speak their preferred language well. |
|
|
|
If messages in your language is currently not available or fully |
|
|
|
If messages in your language are currently not available or not fully |
|
|
|
translated, your assistance would be appreciated. If you want to |
|
|
|
translated, your assistance would be appreciated. If you want to |
|
|
|
help, refer to the <xref linkend="nls"> or write to the developers' |
|
|
|
help, refer to <xref linkend="nls"> or write to the developers' |
|
|
|
mailing list. |
|
|
|
mailing list. |
|
|
|
</para> |
|
|
|
</para> |
|
|
|
</sect2> |
|
|
|
</sect2> |
|
|
|
@ -298,128 +299,128 @@ initdb --locale=sv_SE |
|
|
|
<title>Server Character Sets</title> |
|
|
|
<title>Server Character Sets</title> |
|
|
|
<tgroup cols="2"> |
|
|
|
<tgroup cols="2"> |
|
|
|
<thead> |
|
|
|
<thead> |
|
|
|
<row> |
|
|
|
<row> |
|
|
|
<entry>Name</entry> |
|
|
|
<entry>Name</entry> |
|
|
|
<entry>Description</entry> |
|
|
|
<entry>Description</entry> |
|
|
|
</row> |
|
|
|
</row> |
|
|
|
</thead> |
|
|
|
</thead> |
|
|
|
<tbody> |
|
|
|
<tbody> |
|
|
|
<row> |
|
|
|
<row> |
|
|
|
<entry><literal>SQL_ASCII</literal></entry> |
|
|
|
<entry><literal>SQL_ASCII</literal></entry> |
|
|
|
<entry><acronym>ASCII</acronym></entry> |
|
|
|
<entry><acronym>ASCII</acronym></entry> |
|
|
|
</row> |
|
|
|
</row> |
|
|
|
<row> |
|
|
|
<row> |
|
|
|
<entry><literal>EUC_JP</literal></entry> |
|
|
|
<entry><literal>EUC_JP</literal></entry> |
|
|
|
<entry>Japanese <acronym>EUC</></entry> |
|
|
|
<entry>Japanese <acronym>EUC</></entry> |
|
|
|
</row> |
|
|
|
</row> |
|
|
|
<row> |
|
|
|
<row> |
|
|
|
<entry><literal>EUC_CN</literal></entry> |
|
|
|
<entry><literal>EUC_CN</literal></entry> |
|
|
|
<entry>Chinese <acronym>EUC</></entry> |
|
|
|
<entry>Chinese <acronym>EUC</></entry> |
|
|
|
</row> |
|
|
|
</row> |
|
|
|
<row> |
|
|
|
<row> |
|
|
|
<entry><literal>EUC_KR</literal></entry> |
|
|
|
<entry><literal>EUC_KR</literal></entry> |
|
|
|
<entry>Korean <acronym>EUC</></entry> |
|
|
|
<entry>Korean <acronym>EUC</></entry> |
|
|
|
</row> |
|
|
|
</row> |
|
|
|
<row> |
|
|
|
<row> |
|
|
|
<entry><literal>JOHAB</literal></entry> |
|
|
|
<entry><literal>JOHAB</literal></entry> |
|
|
|
<entry>Korean <acronym>EUC</> (Hangle base)</entry> |
|
|
|
<entry>Korean <acronym>EUC</> (Hangle base)</entry> |
|
|
|
</row> |
|
|
|
</row> |
|
|
|
<row> |
|
|
|
<row> |
|
|
|
<entry><literal>EUC_TW</literal></entry> |
|
|
|
<entry><literal>EUC_TW</literal></entry> |
|
|
|
<entry>Taiwan <acronym>EUC</acronym></entry> |
|
|
|
<entry>Taiwan <acronym>EUC</acronym></entry> |
|
|
|
</row> |
|
|
|
</row> |
|
|
|
<row> |
|
|
|
<row> |
|
|
|
<entry><literal>UNICODE</literal></entry> |
|
|
|
<entry><literal>UNICODE</literal></entry> |
|
|
|
<entry>Unicode (<acronym>UTF</acronym>-8)</entry> |
|
|
|
<entry>Unicode (<acronym>UTF</acronym>-8)</entry> |
|
|
|
</row> |
|
|
|
</row> |
|
|
|
<row> |
|
|
|
<row> |
|
|
|
<entry><literal>MULE_INTERNAL</literal></entry> |
|
|
|
<entry><literal>MULE_INTERNAL</literal></entry> |
|
|
|
<entry>Mule internal code</entry> |
|
|
|
<entry>Mule internal code</entry> |
|
|
|
</row> |
|
|
|
</row> |
|
|
|
<row> |
|
|
|
<row> |
|
|
|
<entry><literal>LATIN1</literal></entry> |
|
|
|
<entry><literal>LATIN1</literal></entry> |
|
|
|
<entry>ISO 8859-1/<acronym>ECMA</> 94 (Latin alphabet no.1)</entry> |
|
|
|
<entry>ISO 8859-1/<acronym>ECMA</> 94 (Latin alphabet no.1)</entry> |
|
|
|
</row> |
|
|
|
</row> |
|
|
|
<row> |
|
|
|
<row> |
|
|
|
<entry><literal>LATIN2</literal></entry> |
|
|
|
<entry><literal>LATIN2</literal></entry> |
|
|
|
<entry>ISO 8859-2/<acronym>ECMA</> 94 (Latin alphabet no.2)</entry> |
|
|
|
<entry>ISO 8859-2/<acronym>ECMA</> 94 (Latin alphabet no.2)</entry> |
|
|
|
</row> |
|
|
|
</row> |
|
|
|
<row> |
|
|
|
<row> |
|
|
|
<entry><literal>LATIN3</literal></entry> |
|
|
|
<entry><literal>LATIN3</literal></entry> |
|
|
|
<entry>ISO 8859-3/<acronym>ECMA</> 94 (Latin alphabet no.3)</entry> |
|
|
|
<entry>ISO 8859-3/<acronym>ECMA</> 94 (Latin alphabet no.3)</entry> |
|
|
|
</row> |
|
|
|
</row> |
|
|
|
<row> |
|
|
|
<row> |
|
|
|
<entry><literal>LATIN4</literal></entry> |
|
|
|
<entry><literal>LATIN4</literal></entry> |
|
|
|
<entry>ISO 8859-4/<acronym>ECMA</> 94 (Latin alphabet no.4)</entry> |
|
|
|
<entry>ISO 8859-4/<acronym>ECMA</> 94 (Latin alphabet no.4)</entry> |
|
|
|
</row> |
|
|
|
</row> |
|
|
|
<row> |
|
|
|
<row> |
|
|
|
<entry><literal>LATIN5</literal></entry> |
|
|
|
<entry><literal>LATIN5</literal></entry> |
|
|
|
<entry>ISO 8859-9/<acronym>ECMA</> 128 (Latin alphabet no.5)</entry> |
|
|
|
<entry>ISO 8859-9/<acronym>ECMA</> 128 (Latin alphabet no.5)</entry> |
|
|
|
</row> |
|
|
|
</row> |
|
|
|
<row> |
|
|
|
<row> |
|
|
|
<entry><literal>LATIN6</literal></entry> |
|
|
|
<entry><literal>LATIN6</literal></entry> |
|
|
|
<entry>ISO 8859-10/<acronym>ECMA</> 144 (Latin alphabet no.6)</entry> |
|
|
|
<entry>ISO 8859-10/<acronym>ECMA</> 144 (Latin alphabet no.6)</entry> |
|
|
|
</row> |
|
|
|
</row> |
|
|
|
<row> |
|
|
|
<row> |
|
|
|
<entry><literal>LATIN7</literal></entry> |
|
|
|
<entry><literal>LATIN7</literal></entry> |
|
|
|
<entry>ISO 8859-13 (Latin alphabet no.7)</entry> |
|
|
|
<entry>ISO 8859-13 (Latin alphabet no.7)</entry> |
|
|
|
</row> |
|
|
|
</row> |
|
|
|
<row> |
|
|
|
<row> |
|
|
|
<entry><literal>LATIN8</literal></entry> |
|
|
|
<entry><literal>LATIN8</literal></entry> |
|
|
|
<entry>ISO 8859-14 (Latin alphabet no.8)</entry> |
|
|
|
<entry>ISO 8859-14 (Latin alphabet no.8)</entry> |
|
|
|
</row> |
|
|
|
</row> |
|
|
|
<row> |
|
|
|
<row> |
|
|
|
<entry><literal>LATIN9</literal></entry> |
|
|
|
<entry><literal>LATIN9</literal></entry> |
|
|
|
<entry>ISO 8859-15 (Latin alphabet no.9)</entry> |
|
|
|
<entry>ISO 8859-15 (Latin alphabet no.9)</entry> |
|
|
|
</row> |
|
|
|
</row> |
|
|
|
<row> |
|
|
|
<row> |
|
|
|
<entry><literal>LATIN10</literal></entry> |
|
|
|
<entry><literal>LATIN10</literal></entry> |
|
|
|
<entry>ISO 8859-16/<acronym>ASRO</> SR 14111 (Latin alphabet no.10)</entry> |
|
|
|
<entry>ISO 8859-16/<acronym>ASRO</> SR 14111 (Latin alphabet no.10)</entry> |
|
|
|
</row> |
|
|
|
</row> |
|
|
|
<row> |
|
|
|
<row> |
|
|
|
<entry><literal>ISO_8859_5</literal></entry> |
|
|
|
<entry><literal>ISO_8859_5</literal></entry> |
|
|
|
<entry>ISO 8859-5/<acronym>ECMA</> 113 (Latin/Cyrillic)</entry> |
|
|
|
<entry>ISO 8859-5/<acronym>ECMA</> 113 (Latin/Cyrillic)</entry> |
|
|
|
</row> |
|
|
|
</row> |
|
|
|
<row> |
|
|
|
<row> |
|
|
|
<entry><literal>ISO_8859_6</literal></entry> |
|
|
|
<entry><literal>ISO_8859_6</literal></entry> |
|
|
|
<entry>ISO 8859-6/<acronym>ECMA</> 114 (Latin/Arabic)</entry> |
|
|
|
<entry>ISO 8859-6/<acronym>ECMA</> 114 (Latin/Arabic)</entry> |
|
|
|
</row> |
|
|
|
</row> |
|
|
|
<row> |
|
|
|
<row> |
|
|
|
<entry><literal>ISO_8859_7</literal></entry> |
|
|
|
<entry><literal>ISO_8859_7</literal></entry> |
|
|
|
<entry>ISO 8859-7/<acronym>ECMA</> 118 (Latin/Greek)</entry> |
|
|
|
<entry>ISO 8859-7/<acronym>ECMA</> 118 (Latin/Greek)</entry> |
|
|
|
</row> |
|
|
|
</row> |
|
|
|
<row> |
|
|
|
<row> |
|
|
|
<entry><literal>ISO_8859_8</literal></entry> |
|
|
|
<entry><literal>ISO_8859_8</literal></entry> |
|
|
|
<entry>ISO 8859-8/<acronym>ECMA</> 121 (Latin/Hebrew)</entry> |
|
|
|
<entry>ISO 8859-8/<acronym>ECMA</> 121 (Latin/Hebrew)</entry> |
|
|
|
</row> |
|
|
|
</row> |
|
|
|
<row> |
|
|
|
<row> |
|
|
|
<entry><literal>KOI8</literal></entry> |
|
|
|
<entry><literal>KOI8</literal></entry> |
|
|
|
<entry><acronym>KOI</acronym>8-R(U)</entry> |
|
|
|
<entry><acronym>KOI</acronym>8-R(U)</entry> |
|
|
|
</row> |
|
|
|
</row> |
|
|
|
<row> |
|
|
|
<row> |
|
|
|
<entry><literal>ALT</literal></entry> |
|
|
|
<entry><literal>ALT</literal></entry> |
|
|
|
<entry>Windows CP866</entry> |
|
|
|
<entry>Windows CP866</entry> |
|
|
|
</row> |
|
|
|
</row> |
|
|
|
<row> |
|
|
|
<row> |
|
|
|
<entry><literal>WIN874</literal></entry> |
|
|
|
<entry><literal>WIN874</literal></entry> |
|
|
|
<entry>Windows CP874 (Thai)</entry> |
|
|
|
<entry>Windows CP874 (Thai)</entry> |
|
|
|
</row> |
|
|
|
</row> |
|
|
|
<row> |
|
|
|
<row> |
|
|
|
<entry><literal>WIN1250</literal></entry> |
|
|
|
<entry><literal>WIN1250</literal></entry> |
|
|
|
<entry>Windows CP1250</entry> |
|
|
|
<entry>Windows CP1250</entry> |
|
|
|
</row> |
|
|
|
</row> |
|
|
|
<row> |
|
|
|
<row> |
|
|
|
<entry><literal>WIN</literal></entry> |
|
|
|
<entry><literal>WIN</literal></entry> |
|
|
|
<entry>Windows CP1251</entry> |
|
|
|
<entry>Windows CP1251</entry> |
|
|
|
</row> |
|
|
|
</row> |
|
|
|
<row> |
|
|
|
<row> |
|
|
|
<entry><literal>WIN1256</literal></entry> |
|
|
|
<entry><literal>WIN1256</literal></entry> |
|
|
|
<entry>Windows CP1256 (Arabic)</entry> |
|
|
|
<entry>Windows CP1256 (Arabic)</entry> |
|
|
|
</row> |
|
|
|
</row> |
|
|
|
<row> |
|
|
|
<row> |
|
|
|
<entry><literal>TCVN</literal></entry> |
|
|
|
<entry><literal>TCVN</literal></entry> |
|
|
|
<entry><acronym>TCVN</>-5712/Windows CP1258 (Vietnamese)</entry> |
|
|
|
<entry><acronym>TCVN</>-5712/Windows CP1258 (Vietnamese)</entry> |
|
|
|
</row> |
|
|
|
</row> |
|
|
|
</tbody> |
|
|
|
</tbody> |
|
|
|
</tgroup> |
|
|
|
</tgroup> |
|
|
|
</table> |
|
|
|
</table> |
|
|
|
@ -498,6 +499,31 @@ $ <userinput>psql -l</userinput> |
|
|
|
(9 rows) |
|
|
|
(9 rows) |
|
|
|
</screen> |
|
|
|
</screen> |
|
|
|
</para> |
|
|
|
</para> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<important> |
|
|
|
|
|
|
|
<para> |
|
|
|
|
|
|
|
Although you can specify any encoding you want for a database, it is |
|
|
|
|
|
|
|
unwise to choose an encoding that is not what is expected by the locale |
|
|
|
|
|
|
|
you have selected. The <literal>LC_COLLATE</literal> and |
|
|
|
|
|
|
|
<literal>LC_CTYPE</literal> settings imply a particular encoding, |
|
|
|
|
|
|
|
and locale-dependent operations (such as sorting) are likely to |
|
|
|
|
|
|
|
misinterpret data that is in an incompatible encoding. |
|
|
|
|
|
|
|
</para> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<para> |
|
|
|
|
|
|
|
Since these locale settings are frozen by <command>initdb</>, the |
|
|
|
|
|
|
|
apparent flexibility to use different encodings in different databases |
|
|
|
|
|
|
|
of a cluster is more theoretical than real. It is likely that these |
|
|
|
|
|
|
|
mechanisms will be revisited in future versions of |
|
|
|
|
|
|
|
<productname>PostgreSQL</productname>. |
|
|
|
|
|
|
|
</para> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<para> |
|
|
|
|
|
|
|
One way to use multiple encodings safely is to set the locale to |
|
|
|
|
|
|
|
<literal>C</> or <literal>POSIX</> during <command>initdb</>, thus |
|
|
|
|
|
|
|
disabling any real locale awareness. |
|
|
|
|
|
|
|
</para> |
|
|
|
|
|
|
|
</important> |
|
|
|
</sect2> |
|
|
|
</sect2> |
|
|
|
|
|
|
|
|
|
|
|
<sect2> |
|
|
|
<sect2> |
|
|
|
@ -518,206 +544,206 @@ $ <userinput>psql -l</userinput> |
|
|
|
<title>Client/Server Character Set Conversions</title> |
|
|
|
<title>Client/Server Character Set Conversions</title> |
|
|
|
<tgroup cols="2"> |
|
|
|
<tgroup cols="2"> |
|
|
|
<thead> |
|
|
|
<thead> |
|
|
|
<row> |
|
|
|
<row> |
|
|
|
<entry>Server Character Set</entry> |
|
|
|
<entry>Server Character Set</entry> |
|
|
|
<entry>Available Client Character Sets</entry> |
|
|
|
<entry>Available Client Character Sets</entry> |
|
|
|
</row> |
|
|
|
</row> |
|
|
|
</thead> |
|
|
|
</thead> |
|
|
|
<tbody> |
|
|
|
<tbody> |
|
|
|
<row> |
|
|
|
<row> |
|
|
|
<entry><literal>SQL_ASCII</literal></entry> |
|
|
|
<entry><literal>SQL_ASCII</literal></entry> |
|
|
|
<entry><literal>SQL_ASCII</literal>, <literal>UNICODE</literal>, <literal>MULE_INTERNAL</literal> |
|
|
|
<entry><literal>SQL_ASCII</literal>, <literal>UNICODE</literal>, <literal>MULE_INTERNAL</literal> |
|
|
|
</entry> |
|
|
|
</entry> |
|
|
|
</row> |
|
|
|
</row> |
|
|
|
<row> |
|
|
|
<row> |
|
|
|
<entry><literal>EUC_JP</literal></entry> |
|
|
|
<entry><literal>EUC_JP</literal></entry> |
|
|
|
<entry><literal>EUC_JP</literal>, <literal>SJIS</literal>, |
|
|
|
<entry><literal>EUC_JP</literal>, <literal>SJIS</literal>, |
|
|
|
<literal>UNICODE</literal>, <literal>MULE_INTERNAL</literal> |
|
|
|
<literal>UNICODE</literal>, <literal>MULE_INTERNAL</literal> |
|
|
|
</entry> |
|
|
|
</entry> |
|
|
|
</row> |
|
|
|
</row> |
|
|
|
<row> |
|
|
|
<row> |
|
|
|
<entry><literal>EUC_CN</literal></entry> |
|
|
|
<entry><literal>EUC_CN</literal></entry> |
|
|
|
<entry><literal>EUC_CN</literal>, <literal>UNICODE</literal>, <literal>MULE_INTERNAL</literal> |
|
|
|
<entry><literal>EUC_CN</literal>, <literal>UNICODE</literal>, <literal>MULE_INTERNAL</literal> |
|
|
|
</entry> |
|
|
|
</entry> |
|
|
|
</row> |
|
|
|
</row> |
|
|
|
<row> |
|
|
|
<row> |
|
|
|
<entry><literal>EUC_KR</literal></entry> |
|
|
|
<entry><literal>EUC_KR</literal></entry> |
|
|
|
<entry><literal>EUC_KR</literal>, <literal>UNICODE</literal>, <literal>MULE_INTERNAL</literal> |
|
|
|
<entry><literal>EUC_KR</literal>, <literal>UNICODE</literal>, <literal>MULE_INTERNAL</literal> |
|
|
|
</entry> |
|
|
|
</entry> |
|
|
|
</row> |
|
|
|
</row> |
|
|
|
<row> |
|
|
|
<row> |
|
|
|
<entry><literal>JOHAB</literal></entry> |
|
|
|
<entry><literal>JOHAB</literal></entry> |
|
|
|
<entry><literal>JOHAB</literal>, <literal>UNICODE</literal> |
|
|
|
<entry><literal>JOHAB</literal>, <literal>UNICODE</literal> |
|
|
|
</entry> |
|
|
|
</entry> |
|
|
|
</row> |
|
|
|
</row> |
|
|
|
<row> |
|
|
|
<row> |
|
|
|
<entry><literal>EUC_TW</literal></entry> |
|
|
|
<entry><literal>EUC_TW</literal></entry> |
|
|
|
<entry><literal>EUC_TW</literal>, <literal>BIG5</literal>, |
|
|
|
<entry><literal>EUC_TW</literal>, <literal>BIG5</literal>, |
|
|
|
<literal>UNICODE</literal>, <literal>MULE_INTERNAL</literal> |
|
|
|
<literal>UNICODE</literal>, <literal>MULE_INTERNAL</literal> |
|
|
|
</entry> |
|
|
|
</entry> |
|
|
|
</row> |
|
|
|
</row> |
|
|
|
<row> |
|
|
|
<row> |
|
|
|
<entry><literal>LATIN1</literal></entry> |
|
|
|
<entry><literal>LATIN1</literal></entry> |
|
|
|
<entry><literal>LATIN1</literal>, <literal>UNICODE</literal> |
|
|
|
<entry><literal>LATIN1</literal>, <literal>UNICODE</literal> |
|
|
|
<literal>MULE_INTERNAL</literal> |
|
|
|
<literal>MULE_INTERNAL</literal> |
|
|
|
</entry> |
|
|
|
</entry> |
|
|
|
</row> |
|
|
|
</row> |
|
|
|
<row> |
|
|
|
<row> |
|
|
|
<entry><literal>LATIN2</literal></entry> |
|
|
|
<entry><literal>LATIN2</literal></entry> |
|
|
|
<entry><literal>LATIN2</literal>, <literal>WIN1250</literal>, |
|
|
|
<entry><literal>LATIN2</literal>, <literal>WIN1250</literal>, |
|
|
|
<literal>UNICODE</literal>, |
|
|
|
<literal>UNICODE</literal>, |
|
|
|
<literal>MULE_INTERNAL</literal> |
|
|
|
<literal>MULE_INTERNAL</literal> |
|
|
|
</entry> |
|
|
|
</entry> |
|
|
|
</row> |
|
|
|
</row> |
|
|
|
<row> |
|
|
|
<row> |
|
|
|
<entry><literal>LATIN3</literal></entry> |
|
|
|
<entry><literal>LATIN3</literal></entry> |
|
|
|
<entry><literal>LATIN3</literal>, <literal>UNICODE</literal>, |
|
|
|
<entry><literal>LATIN3</literal>, <literal>UNICODE</literal>, |
|
|
|
<literal>MULE_INTERNAL</literal> |
|
|
|
<literal>MULE_INTERNAL</literal> |
|
|
|
</entry> |
|
|
|
</entry> |
|
|
|
</row> |
|
|
|
</row> |
|
|
|
<row> |
|
|
|
<row> |
|
|
|
<entry><literal>LATIN4</literal></entry> |
|
|
|
<entry><literal>LATIN4</literal></entry> |
|
|
|
<entry><literal>LATIN4</literal>, <literal>UNICODE</literal>, |
|
|
|
<entry><literal>LATIN4</literal>, <literal>UNICODE</literal>, |
|
|
|
<literal>MULE_INTERNAL</literal> |
|
|
|
<literal>MULE_INTERNAL</literal> |
|
|
|
</entry> |
|
|
|
</entry> |
|
|
|
</row> |
|
|
|
</row> |
|
|
|
<row> |
|
|
|
<row> |
|
|
|
<entry><literal>LATIN5</literal></entry> |
|
|
|
<entry><literal>LATIN5</literal></entry> |
|
|
|
<entry><literal>LATIN5</literal>, <literal>UNICODE</literal> |
|
|
|
<entry><literal>LATIN5</literal>, <literal>UNICODE</literal> |
|
|
|
</entry> |
|
|
|
</entry> |
|
|
|
</row> |
|
|
|
</row> |
|
|
|
<row> |
|
|
|
<row> |
|
|
|
<entry><literal>LATIN6</literal></entry> |
|
|
|
<entry><literal>LATIN6</literal></entry> |
|
|
|
<entry><literal>LATIN6</literal>, <literal>UNICODE</literal>, |
|
|
|
<entry><literal>LATIN6</literal>, <literal>UNICODE</literal>, |
|
|
|
<literal>MULE_INTERNAL</literal> |
|
|
|
<literal>MULE_INTERNAL</literal> |
|
|
|
</entry> |
|
|
|
</entry> |
|
|
|
</row> |
|
|
|
</row> |
|
|
|
<row> |
|
|
|
<row> |
|
|
|
<entry><literal>LATIN7</literal></entry> |
|
|
|
<entry><literal>LATIN7</literal></entry> |
|
|
|
<entry><literal>LATIN7</literal>, <literal>UNICODE</literal>, |
|
|
|
<entry><literal>LATIN7</literal>, <literal>UNICODE</literal>, |
|
|
|
<literal>MULE_INTERNAL</literal> |
|
|
|
<literal>MULE_INTERNAL</literal> |
|
|
|
</entry> |
|
|
|
</entry> |
|
|
|
</row> |
|
|
|
</row> |
|
|
|
<row> |
|
|
|
<row> |
|
|
|
<entry><literal>LATIN8</literal></entry> |
|
|
|
<entry><literal>LATIN8</literal></entry> |
|
|
|
<entry><literal>LATIN8</literal>, <literal>UNICODE</literal>, |
|
|
|
<entry><literal>LATIN8</literal>, <literal>UNICODE</literal>, |
|
|
|
<literal>MULE_INTERNAL</literal> |
|
|
|
<literal>MULE_INTERNAL</literal> |
|
|
|
</entry> |
|
|
|
</entry> |
|
|
|
</row> |
|
|
|
</row> |
|
|
|
<row> |
|
|
|
<row> |
|
|
|
<entry><literal>LATIN9</literal></entry> |
|
|
|
<entry><literal>LATIN9</literal></entry> |
|
|
|
<entry><literal>LATIN9</literal>, <literal>UNICODE</literal>, |
|
|
|
<entry><literal>LATIN9</literal>, <literal>UNICODE</literal>, |
|
|
|
<literal>MULE_INTERNAL</literal> |
|
|
|
<literal>MULE_INTERNAL</literal> |
|
|
|
</entry> |
|
|
|
</entry> |
|
|
|
</row> |
|
|
|
</row> |
|
|
|
<row> |
|
|
|
<row> |
|
|
|
<entry><literal>LATIN10</literal></entry> |
|
|
|
<entry><literal>LATIN10</literal></entry> |
|
|
|
<entry><literal>LATIN10</literal>, <literal>UNICODE</literal>, |
|
|
|
<entry><literal>LATIN10</literal>, <literal>UNICODE</literal>, |
|
|
|
<literal>MULE_INTERNAL</literal> |
|
|
|
<literal>MULE_INTERNAL</literal> |
|
|
|
</entry> |
|
|
|
</entry> |
|
|
|
</row> |
|
|
|
</row> |
|
|
|
<row> |
|
|
|
<row> |
|
|
|
<entry><literal>ISO_8859_5</literal></entry> |
|
|
|
<entry><literal>ISO_8859_5</literal></entry> |
|
|
|
<entry><literal>ISO_8859_5</literal>, |
|
|
|
<entry><literal>ISO_8859_5</literal>, |
|
|
|
<literal>UNICODE</literal>, |
|
|
|
<literal>UNICODE</literal>, |
|
|
|
<literal>MULE_INTERNAL</literal>, |
|
|
|
<literal>MULE_INTERNAL</literal>, |
|
|
|
<literal>WIN</literal>, |
|
|
|
<literal>WIN</literal>, |
|
|
|
<literal>ALT</literal>, |
|
|
|
<literal>ALT</literal>, |
|
|
|
<literal>KOI8</literal> |
|
|
|
<literal>KOI8</literal> |
|
|
|
</entry> |
|
|
|
</entry> |
|
|
|
</row> |
|
|
|
</row> |
|
|
|
<row> |
|
|
|
<row> |
|
|
|
<entry><literal>ISO_8859_6</literal></entry> |
|
|
|
<entry><literal>ISO_8859_6</literal></entry> |
|
|
|
<entry><literal>ISO_8859_6</literal>, |
|
|
|
<entry><literal>ISO_8859_6</literal>, |
|
|
|
<literal>UNICODE</literal> |
|
|
|
<literal>UNICODE</literal> |
|
|
|
</entry> |
|
|
|
</entry> |
|
|
|
</row> |
|
|
|
</row> |
|
|
|
<row> |
|
|
|
<row> |
|
|
|
<entry><literal>ISO_8859_7</literal></entry> |
|
|
|
<entry><literal>ISO_8859_7</literal></entry> |
|
|
|
<entry><literal>ISO_8859_7</literal>, |
|
|
|
<entry><literal>ISO_8859_7</literal>, |
|
|
|
<literal>UNICODE</literal> |
|
|
|
<literal>UNICODE</literal> |
|
|
|
</entry> |
|
|
|
</entry> |
|
|
|
</row> |
|
|
|
</row> |
|
|
|
<row> |
|
|
|
<row> |
|
|
|
<entry><literal>ISO_8859_8</literal></entry> |
|
|
|
<entry><literal>ISO_8859_8</literal></entry> |
|
|
|
<entry><literal>ISO_8859_8</literal>, |
|
|
|
<entry><literal>ISO_8859_8</literal>, |
|
|
|
<literal>UNICODE</literal> |
|
|
|
<literal>UNICODE</literal> |
|
|
|
</entry> |
|
|
|
</entry> |
|
|
|
</row> |
|
|
|
</row> |
|
|
|
<row> |
|
|
|
<row> |
|
|
|
<entry><literal>UNICODE</literal></entry> |
|
|
|
<entry><literal>UNICODE</literal></entry> |
|
|
|
<entry> |
|
|
|
<entry> |
|
|
|
<literal>EUC_JP</literal>, <literal>SJIS</literal>, |
|
|
|
<literal>EUC_JP</literal>, <literal>SJIS</literal>, |
|
|
|
<literal>EUC_KR</literal>, <literal>UHC</literal>, <literal>JOHAB</literal>, |
|
|
|
<literal>EUC_KR</literal>, <literal>UHC</literal>, <literal>JOHAB</literal>, |
|
|
|
<literal>EUC_CN</literal>, <literal>GBK</literal>, |
|
|
|
<literal>EUC_CN</literal>, <literal>GBK</literal>, |
|
|
|
<literal>EUC_TW</literal>, <literal>BIG5</literal>, |
|
|
|
<literal>EUC_TW</literal>, <literal>BIG5</literal>, |
|
|
|
<literal>LATIN1</literal> to <literal>LATIN10</literal>, |
|
|
|
<literal>LATIN1</literal> to <literal>LATIN10</literal>, |
|
|
|
<literal>ISO_8859_5</literal>, |
|
|
|
<literal>ISO_8859_5</literal>, |
|
|
|
<literal>ISO_8859_6</literal>, |
|
|
|
<literal>ISO_8859_6</literal>, |
|
|
|
<literal>ISO_8859_7</literal>, |
|
|
|
<literal>ISO_8859_7</literal>, |
|
|
|
<literal>ISO_8859_8</literal>, |
|
|
|
<literal>ISO_8859_8</literal>, |
|
|
|
<literal>WIN</literal>, <literal>ALT</literal>, |
|
|
|
<literal>WIN</literal>, <literal>ALT</literal>, |
|
|
|
<literal>KOI8</literal>, |
|
|
|
<literal>KOI8</literal>, |
|
|
|
<literal>WIN1256</literal>, |
|
|
|
<literal>WIN1256</literal>, |
|
|
|
<literal>TCVN</literal>, |
|
|
|
<literal>TCVN</literal>, |
|
|
|
<literal>WIN874</literal>, |
|
|
|
<literal>WIN874</literal>, |
|
|
|
<literal>GB18030</literal>, |
|
|
|
<literal>GB18030</literal>, |
|
|
|
<literal>WIN1250</literal> |
|
|
|
<literal>WIN1250</literal> |
|
|
|
</entry> |
|
|
|
</entry> |
|
|
|
</row> |
|
|
|
</row> |
|
|
|
<row> |
|
|
|
<row> |
|
|
|
<entry><literal>MULE_INTERNAL</literal></entry> |
|
|
|
<entry><literal>MULE_INTERNAL</literal></entry> |
|
|
|
<entry><literal>EUC_JP</literal>, <literal>SJIS</literal>, <literal>EUC_KR</literal>, <literal>EUC_CN</literal>, |
|
|
|
<entry><literal>EUC_JP</literal>, <literal>SJIS</literal>, <literal>EUC_KR</literal>, <literal>EUC_CN</literal>, |
|
|
|
<literal>EUC_TW</literal>, <literal>BIG5</literal>, <literal>LATIN1</literal> to <literal>LATIN5</literal>, |
|
|
|
<literal>EUC_TW</literal>, <literal>BIG5</literal>, <literal>LATIN1</literal> to <literal>LATIN5</literal>, |
|
|
|
<literal>WIN</literal>, <literal>ALT</literal>, |
|
|
|
<literal>WIN</literal>, <literal>ALT</literal>, |
|
|
|
<literal>WIN1250</literal>, |
|
|
|
<literal>WIN1250</literal>, |
|
|
|
<literal>BIG5</literal>, <literal>ISO_8859_5</literal>, <literal>KOI8</literal></entry> |
|
|
|
<literal>BIG5</literal>, <literal>ISO_8859_5</literal>, <literal>KOI8</literal></entry> |
|
|
|
</row> |
|
|
|
</row> |
|
|
|
<row> |
|
|
|
<row> |
|
|
|
<entry><literal>KOI8</literal></entry> |
|
|
|
<entry><literal>KOI8</literal></entry> |
|
|
|
<entry><literal>ISO_8859_5</literal>, <literal>WIN</literal>, |
|
|
|
<entry><literal>ISO_8859_5</literal>, <literal>WIN</literal>, |
|
|
|
<literal>ALT</literal>, <literal>KOI8</literal>, |
|
|
|
<literal>ALT</literal>, <literal>KOI8</literal>, |
|
|
|
<literal>UNICODE</literal>, <literal>MULE_INTERNAL</literal> |
|
|
|
<literal>UNICODE</literal>, <literal>MULE_INTERNAL</literal> |
|
|
|
</entry> |
|
|
|
</entry> |
|
|
|
</row> |
|
|
|
</row> |
|
|
|
<row> |
|
|
|
<row> |
|
|
|
<entry><literal>ALT</literal></entry> |
|
|
|
<entry><literal>ALT</literal></entry> |
|
|
|
<entry><literal>ISO_8859_5</literal>, <literal>WIN</literal>, |
|
|
|
<entry><literal>ISO_8859_5</literal>, <literal>WIN</literal>, |
|
|
|
<literal>ALT</literal>, <literal>KOI8</literal>, |
|
|
|
<literal>ALT</literal>, <literal>KOI8</literal>, |
|
|
|
<literal>UNICODE</literal>, <literal>MULE_INTERNAL</literal> |
|
|
|
<literal>UNICODE</literal>, <literal>MULE_INTERNAL</literal> |
|
|
|
</entry> |
|
|
|
</entry> |
|
|
|
</row> |
|
|
|
</row> |
|
|
|
<row> |
|
|
|
<row> |
|
|
|
<entry><literal>WIN874</literal></entry> |
|
|
|
<entry><literal>WIN874</literal></entry> |
|
|
|
<entry><literal>WIN874</literal>, |
|
|
|
<entry><literal>WIN874</literal>, |
|
|
|
<literal>UNICODE</literal> |
|
|
|
<literal>UNICODE</literal> |
|
|
|
</entry> |
|
|
|
</entry> |
|
|
|
</row> |
|
|
|
</row> |
|
|
|
<row> |
|
|
|
<row> |
|
|
|
<entry><literal>WIN1250</literal></entry> |
|
|
|
<entry><literal>WIN1250</literal></entry> |
|
|
|
<entry><literal>LATIN2</literal>, <literal>WIN1250</literal>, |
|
|
|
<entry><literal>LATIN2</literal>, <literal>WIN1250</literal>, |
|
|
|
|
|
|
|
<literal>UNICODE</literal>, <literal>MULE_INTERNAL</literal> |
|
|
|
|
|
|
|
</entry> |
|
|
|
|
|
|
|
</row> |
|
|
|
|
|
|
|
<row> |
|
|
|
|
|
|
|
<entry><literal>WIN</literal></entry> |
|
|
|
|
|
|
|
<entry><literal>ISO_8859_5</literal>, <literal>WIN</literal>, |
|
|
|
|
|
|
|
<literal>ALT</literal>, <literal>KOI8</literal>, |
|
|
|
<literal>UNICODE</literal>, <literal>MULE_INTERNAL</literal> |
|
|
|
<literal>UNICODE</literal>, <literal>MULE_INTERNAL</literal> |
|
|
|
</entry> |
|
|
|
</entry> |
|
|
|
</row> |
|
|
|
</row> |
|
|
|
<row> |
|
|
|
<row> |
|
|
|
<entry><literal>WIN</literal></entry> |
|
|
|
<entry><literal>WIN1256</literal></entry> |
|
|
|
<entry><literal>ISO_8859_5</literal>, <literal>WIN</literal>, |
|
|
|
<entry><literal>WIN1256</literal>, |
|
|
|
<literal>ALT</literal>, <literal>KOI8</literal>, |
|
|
|
<literal>UNICODE</literal> |
|
|
|
<literal>UNICODE</literal>, <literal>MULE_INTERNAL</literal> |
|
|
|
</entry> |
|
|
|
</entry> |
|
|
|
</row> |
|
|
|
</row> |
|
|
|
<row> |
|
|
|
<row> |
|
|
|
<entry><literal>TCVN</literal></entry> |
|
|
|
<entry><literal>WIN1256</literal></entry> |
|
|
|
<entry><literal>TCVN</literal>, |
|
|
|
<entry><literal>WIN1256</literal>, |
|
|
|
<literal>UNICODE</literal> |
|
|
|
<literal>UNICODE</literal> |
|
|
|
</entry> |
|
|
|
</entry> |
|
|
|
</row> |
|
|
|
</row> |
|
|
|
|
|
|
|
<row> |
|
|
|
|
|
|
|
<entry><literal>TCVN</literal></entry> |
|
|
|
|
|
|
|
<entry><literal>TCVN</literal>, |
|
|
|
|
|
|
|
<literal>UNICODE</literal> |
|
|
|
|
|
|
|
</entry> |
|
|
|
|
|
|
|
</row> |
|
|
|
|
|
|
|
</tbody> |
|
|
|
</tbody> |
|
|
|
</tgroup> |
|
|
|
</tgroup> |
|
|
|
</table> |
|
|
|
</table> |
|
|
|
@ -731,11 +757,11 @@ $ <userinput>psql -l</userinput> |
|
|
|
<itemizedlist> |
|
|
|
<itemizedlist> |
|
|
|
<listitem> |
|
|
|
<listitem> |
|
|
|
<para> |
|
|
|
<para> |
|
|
|
Using the <command>\encoding</command> command in |
|
|
|
Using the <command>\encoding</command> command in |
|
|
|
<application>psql</application>. |
|
|
|
<application>psql</application>. |
|
|
|
<command>\encoding</command> allows you to change client |
|
|
|
<command>\encoding</command> allows you to change client |
|
|
|
encoding on the fly. For |
|
|
|
encoding on the fly. For |
|
|
|
example, to change the encoding to <literal>SJIS</literal>, type: |
|
|
|
example, to change the encoding to <literal>SJIS</literal>, type: |
|
|
|
|
|
|
|
|
|
|
|
<programlisting> |
|
|
|
<programlisting> |
|
|
|
\encoding SJIS |
|
|
|
\encoding SJIS |
|
|
|
@ -745,27 +771,27 @@ $ <userinput>psql -l</userinput> |
|
|
|
|
|
|
|
|
|
|
|
<listitem> |
|
|
|
<listitem> |
|
|
|
<para> |
|
|
|
<para> |
|
|
|
Using <application>libpq</> functions. |
|
|
|
Using <application>libpq</> functions. |
|
|
|
<command>\encoding</command> actually calls |
|
|
|
<command>\encoding</command> actually calls |
|
|
|
<function>PQsetClientEncoding()</function> for its purpose. |
|
|
|
<function>PQsetClientEncoding()</function> for its purpose. |
|
|
|
|
|
|
|
|
|
|
|
<synopsis> |
|
|
|
<synopsis> |
|
|
|
int PQsetClientEncoding(PGconn *<replaceable>conn</replaceable>, const char *<replaceable>encoding</replaceable>); |
|
|
|
int PQsetClientEncoding(PGconn *<replaceable>conn</replaceable>, const char *<replaceable>encoding</replaceable>); |
|
|
|
</synopsis> |
|
|
|
</synopsis> |
|
|
|
|
|
|
|
|
|
|
|
where <replaceable>conn</replaceable> is a connection to the server, |
|
|
|
where <replaceable>conn</replaceable> is a connection to the server, |
|
|
|
and <replaceable>encoding</replaceable> is the encoding you |
|
|
|
and <replaceable>encoding</replaceable> is the encoding you |
|
|
|
want to use. If the function successfully sets the encoding, it returns 0, |
|
|
|
want to use. If the function successfully sets the encoding, it returns 0, |
|
|
|
otherwise -1. The current encoding for this connection can be determined by |
|
|
|
otherwise -1. The current encoding for this connection can be determined by |
|
|
|
using: |
|
|
|
using: |
|
|
|
|
|
|
|
|
|
|
|
<synopsis> |
|
|
|
<synopsis> |
|
|
|
int PQclientEncoding(const PGconn *<replaceable>conn</replaceable>); |
|
|
|
int PQclientEncoding(const PGconn *<replaceable>conn</replaceable>); |
|
|
|
</synopsis> |
|
|
|
</synopsis> |
|
|
|
|
|
|
|
|
|
|
|
Note that it returns the encoding ID, not a symbolic string |
|
|
|
Note that it returns the encoding ID, not a symbolic string |
|
|
|
such as <literal>EUC_JP</literal>. To convert an encoding ID to an encoding name, you |
|
|
|
such as <literal>EUC_JP</literal>. To convert an encoding ID to an encoding name, you |
|
|
|
can use: |
|
|
|
can use: |
|
|
|
|
|
|
|
|
|
|
|
<synopsis> |
|
|
|
<synopsis> |
|
|
|
char *pg_encoding_to_char(int <replaceable>encoding_id</replaceable>); |
|
|
|
char *pg_encoding_to_char(int <replaceable>encoding_id</replaceable>); |
|
|
|
@ -775,27 +801,27 @@ char *pg_encoding_to_char(int <replaceable>encoding_id</replaceable>); |
|
|
|
|
|
|
|
|
|
|
|
<listitem> |
|
|
|
<listitem> |
|
|
|
<para> |
|
|
|
<para> |
|
|
|
Using <command>SET client_encoding TO</command>. |
|
|
|
Using <command>SET client_encoding TO</command>. |
|
|
|
|
|
|
|
|
|
|
|
Setting the client encoding can be done with this SQL command: |
|
|
|
Setting the client encoding can be done with this SQL command: |
|
|
|
|
|
|
|
|
|
|
|
<programlisting> |
|
|
|
<programlisting> |
|
|
|
SET CLIENT_ENCODING TO '<replaceable>value</>'; |
|
|
|
SET CLIENT_ENCODING TO '<replaceable>value</>'; |
|
|
|
</programlisting> |
|
|
|
</programlisting> |
|
|
|
|
|
|
|
|
|
|
|
Also you can use the more standard SQL syntax <literal>SET NAMES</literal> for this purpose: |
|
|
|
Also you can use the more standard SQL syntax <literal>SET NAMES</literal> for this purpose: |
|
|
|
|
|
|
|
|
|
|
|
<programlisting> |
|
|
|
<programlisting> |
|
|
|
SET NAMES '<replaceable>value</>'; |
|
|
|
SET NAMES '<replaceable>value</>'; |
|
|
|
</programlisting> |
|
|
|
</programlisting> |
|
|
|
|
|
|
|
|
|
|
|
To query the current client encoding: |
|
|
|
To query the current client encoding: |
|
|
|
|
|
|
|
|
|
|
|
<programlisting> |
|
|
|
<programlisting> |
|
|
|
SHOW client_encoding; |
|
|
|
SHOW client_encoding; |
|
|
|
</programlisting> |
|
|
|
</programlisting> |
|
|
|
|
|
|
|
|
|
|
|
To return to the default encoding: |
|
|
|
To return to the default encoding: |
|
|
|
|
|
|
|
|
|
|
|
<programlisting> |
|
|
|
<programlisting> |
|
|
|
RESET client_encoding; |
|
|
|
RESET client_encoding; |
|
|
|
@ -805,7 +831,7 @@ RESET client_encoding; |
|
|
|
|
|
|
|
|
|
|
|
<listitem> |
|
|
|
<listitem> |
|
|
|
<para> |
|
|
|
<para> |
|
|
|
Using <envar>PGCLIENTENCODING</envar>. If environment variable |
|
|
|
Using <envar>PGCLIENTENCODING</envar>. If the environment variable |
|
|
|
<envar>PGCLIENTENCODING</envar> is defined in the client's |
|
|
|
<envar>PGCLIENTENCODING</envar> is defined in the client's |
|
|
|
environment, that client encoding is automatically selected |
|
|
|
environment, that client encoding is automatically selected |
|
|
|
when a connection to the server is made. (This can |
|
|
|
when a connection to the server is made. (This can |
|
|
|
@ -874,7 +900,7 @@ RESET client_encoding; |
|
|
|
|
|
|
|
|
|
|
|
<listitem> |
|
|
|
<listitem> |
|
|
|
<para> |
|
|
|
<para> |
|
|
|
<acronym>UTF</acronym>-8 is defined here. |
|
|
|
<acronym>UTF</acronym>-8 is defined here. |
|
|
|
</para> |
|
|
|
</para> |
|
|
|
</listitem> |
|
|
|
</listitem> |
|
|
|
</varlistentry> |
|
|
|
</varlistentry> |
|
|
|
|