EPUB | CHM | PDF

TMySQLDatabase.Methods.GetDatabaseCharacterset

Top Previous Next

note Since v2.6.0

Returns character set name string for current database.

Syntax:

function GetDatabaseCharacterset: String;

Description:

GetDatabaseCharacterset method returns character set name as it have been reported by server. For example: cp1251.

noteThis method returns 'character_set' server variable's value for MySQL earlier than 4.1.1 and character_set_database server variable value for MySQL greater than 4.1.1

note Please read this FAQ section if you want to use Unicode strings in your application: How to use Unicode data in my application?

See also: GetDatabaseCollation method