sqlite_libencoding

(PHP 5 < 5.4.0, PECL sqlite >= 1.0.0)

sqlite_libencodingReturns the encoding of the linked SQLite library

说明

sqlite_libencoding ( void ) : string

The SQLite library may be compiled in either ISO-8859-1 or UTF-8 compatible modes. This function allows you to determine which encoding scheme is used by your version of the library.

Warning

The default PHP distribution builds libsqlite in ISO-8859-1 encoding mode. However, this is a misnomer; rather than handling ISO-8859-1, it operates according to your current locale settings for string comparisons and sort ordering. So, rather than ISO-8859-1, you should think of it as being '8-bit' instead.

When compiled with UTF-8 support, sqlite handles encoding and decoding of UTF-8 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.

Warning

It is not recommended that you use PHP in a web-server configuration with a version of the SQLite library compiled with UTF-8 support, since libsqlite will abort the process if it detects a problem with the UTF-8 encoding.

返回值

Returns the library encoding.

参见

  • sqlite_lib_version()

相关文章
php imap 函数 returns a properly formatted email address given the mailbox host and personal infophp maxdb 函数 returns the number of columns for the most recent queryphp maxdb 函数 returns the thread id for the current connectionphp sqlite 函数 execute a query against a given database and returns an arrayphp sqlite 函数 returns the number of rows that were changed by the most recent sql statementphp sqlite 函数 returns the textual description of an error codephp sqlite 函数 opens an sqlite database and returns an sqlitedatabase objectphp sqlite 函数 returns the name of a particular fieldphp sqlite 函数 returns whether or not a previous row is availablephp sqlite 函数 returns the current row indexphp sqlite 函数 returns the error code of the last error for a databasephp sqlite 函数 returns the rowid of the most recently inserted rowphp sqlite 函数 returns the encoding of the linked sqlite libraryphp sqlite 函数 returns the version of the linked sqlite libraryphp sqlite 函数 returns the number of fields in a result setphp sqlite 函数 returns the number of rows in a buffered result setphp sqlite 函数 executes a query against a given database and returns a result handlephp sqlite 函数 executes a query and returns either an array for one single column or the value of the first rowphp sqlite 函数 returns whether more rows are availablephp sdo das relational 函数 executes a given sql query against a relational database and returns the results as a normalised data graph
关注编程学问公众号