<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>Returns the encoding of the linked SQLite library</title> </head> <body><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.sqlite-last-insert-rowid.html">sqlite_last_insert_rowid</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.sqlite-libversion.html">sqlite_libversion</a></div> <div class="up"><a href="ref.sqlite.html">SQLite Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div><hr /><div id="function.sqlite-libencoding" class="refentry"> <div class="refnamediv"> <h1 class="refname">sqlite_libencoding</h1> <p class="verinfo">(PHP 5 < 5.4.0, PECL sqlite >= 1.0.0)</p><p class="refpurpose"><span class="refname">sqlite_libencoding</span> — <span class="dc-title">Returns the encoding of the linked SQLite library</span></p> </div> <div class="refsect1 description" id="refsect1-function.sqlite-libencoding-description"> <h3 class="title">Description</h3> <div class="methodsynopsis dc-description"> <span class="type">string</span> <span class="methodname"><strong>sqlite_libencoding</strong></span> ( <span class="methodparam">void</span> )</div> <p class="para rdfs-comment"> The SQLite library may be compiled in either <em>ISO-8859-1</em> or <em>UTF-8</em> compatible modes. This function allows you to determine which encoding scheme is used by your version of the library. </p> <div class="warning"><strong class="warning">Warning</strong> <p class="para"> The default PHP distribution builds <var class="filename">libsqlite</var> in <em>ISO-8859-1</em> encoding mode. However, this is a misnomer; rather than handling <em>ISO-8859-1</em>, it operates according to your current locale settings for string comparisons and sort ordering. So, rather than <em>ISO-8859-1</em>, you should think of it as being '<em>8-bit</em>' instead. </p> </div> <p class="para"> When compiled with <em>UTF-8</em> support, sqlite handles encoding and decoding of <em>UTF-8</em> 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. </p> <div class="warning"><strong class="warning">Warning</strong> <p class="para"> It is not recommended that you use PHP in a web-server configuration with a version of the SQLite library compiled with <em>UTF-8</em> support, since <var class="filename">libsqlite</var> will abort the process if it detects a problem with the <em>UTF-8</em> encoding. </p> </div> </div> <div class="refsect1 returnvalues" id="refsect1-function.sqlite-libencoding-returnvalues"> <h3 class="title">Return Values</h3> <p class="para"> Returns the library encoding. </p> </div> <div class="refsect1 seealso" id="refsect1-function.sqlite-libencoding-seealso"> <h3 class="title">See Also</h3> <p class="para"> <ul class="simplelist"> <li class="member"> <span class="function"><strong>sqlite_lib_version()</strong></span></li> </ul> </p> </div> </div><hr /><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.sqlite-last-insert-rowid.html">sqlite_last_insert_rowid</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.sqlite-libversion.html">sqlite_libversion</a></div> <div class="up"><a href="ref.sqlite.html">SQLite Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div></body></html>