<?xml version="1.0" encoding="utf-8"?> <!-- $Revision$ --> <refentry xml:id="function.cubrid-get-charset" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> <refname>cubrid_get_charset</refname> <refpurpose>Return the current CUBRID connection charset</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <type>string</type><methodname>cubrid_get_charset</methodname> <methodparam><type>resource</type><parameter>conn_identifier</parameter></methodparam> </methodsynopsis> <para> This function returns the current CUBRID connection charset and is similar to the CUBRID MySQL compatible function <function>cubrid_client_encoding</function>. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; <para> <variablelist> <varlistentry> <term><parameter>conn_identifier</parameter></term> <listitem><para>The CUBRID connection.</para></listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> A string that represents the CUBRID connection charset; on success. </para> <para> &false; on failure. </para> </refsect1> <refsect1 role="examples"> &reftitle.examples; <example> <title><function>cubrid_get_charset</function> example</title> <programlisting role="php"> <![CDATA[ <?php $con = cubrid_connect("localhost", 33000, "demodb"); if (!$con) { die('Could not connect.'); } printf("CUBRID current charset: %s\n", cubrid_get_charset($con)); ?> ]]> </programlisting> &example.outputs; <screen> <![CDATA[ CUBRID current charset: iso8859-1 ]]> </screen> </example> </refsect1> <refsect1 role="seealso"> &reftitle.seealso; <para> <simplelist> <member><function>cubrid_client_encoding</function></member> </simplelist> </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"~/.phpdoc/manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 -->