Home » Database » MDB2 » Bug #8042
Add character set support
Details
| Request #8042 | Add character set support |
|---|---|
| Submitted | 2006-06-27 07:07 UTC |
| From | tokul at users dot sourceforge dot net |
| Status | Duplicate |
| Package | MDB2 |
| PHP Version | Irrelevant |
| 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.