PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Database » MDB2 » Bug #8042

Add character set support

Details

Request #8042Add character set support
Submitted2006-06-27 07:07 UTC
Fromtokul at users dot sourceforge dot net
StatusDuplicate
PackageMDB2
PHP VersionIrrelevant
Roadmaps(Not assigned)

Comments

[2006-06-27 07:07 UTC] tokul at users dot sourceforge dot net

Description:
------------
Please provide generic tools that allow to set database client's character set without code that is specific to selected database.

pgsql provides pg_client_encoding and pg_set_client_encoding functions. mysqli extension has set_charset and character_set_name methods. In older mysql extension you can use 'SET NAMES' query. See MySQL manual "10.4. Connection Character Sets and Collations"

If client charset is not set correctly, query results might be corrupted and client application can solve issue only with unportable sql queries or function calls specific to selected database driver.