ADOdb

Database Abstraction Layer for PHP

User Tools

Site Tools


v6:reference:connection:setcharset

setCharSet

Syntax
string setCharSet(
    string characterSet
)

Sets the locale string for the database connection

Example

/*
* Set the connection character set to French
*/
$db->setCharSet('FR');
v6/reference/connection/setcharset.txt · Last modified: by 127.0.0.1