<?xml version="1.0" encoding="utf-8"?> <!-- $Revision$ --> <refentry xml:id="function.sqlite-libencoding" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>sqlite_libencoding</refname> <refpurpose>Returns the encoding of the linked SQLite library</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <type>string</type><methodname>sqlite_libencoding</methodname> <void/> </methodsynopsis> <para> The SQLite library may be compiled in either <literal>ISO-8859-1</literal> or <literal>UTF-8</literal> compatible modes. This function allows you to determine which encoding scheme is used by your version of the library. </para> <warning> <para> The default PHP distribution builds <filename>libsqlite</filename> in <literal>ISO-8859-1</literal> encoding mode. However, this is a misnomer; rather than handling <literal>ISO-8859-1</literal>, it operates according to your current locale settings for string comparisons and sort ordering. So, rather than <literal>ISO-8859-1</literal>, you should think of it as being '<literal>8-bit</literal>' instead. </para> </warning> <para> When compiled with <literal>UTF-8</literal> support, sqlite handles encoding and decoding of <literal>UTF-8</literal> multi-byte character sequences, but does not yet do a complete job when working with the data (no normalization is performed for example), and some comparison operations may still not be carried out correctly. </para> <warning> <para> It is not recommended that you use PHP in a web-server configuration with a version of the SQLite library compiled with <literal>UTF-8</literal> support, since <filename>libsqlite</filename> will abort the process if it detects a problem with the <literal>UTF-8</literal> encoding. </para> </warning> </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> Returns the library encoding. </para> </refsect1> <refsect1 role="seealso"> &reftitle.seealso; <para> <simplelist> <member><function>sqlite_lib_version</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 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 -->