ADOdb

Database Abstraction Layer for PHP

User Tools

Site Tools


v5:reference:connection:getcharset

getCharSet

Support for this command is limited to MySQL and Postgres databases.

Syntax
 string|false function getCharSet()
      

Description

The function getCharSet() retrieves the current client side character set, or false if it can't be determined.

See setCharSet().

Usage

echo $db->getCharset(); // utf8mb4
v5/reference/connection/getcharset.txt · Last modified: 2021/03/08 18:09 by dregad