SQL_SetCharset Function

Sets the character set of the current connection. Like SET NAMES .. in mysql, but stays after connection problems.

Example: "utf8", "latin1"

bool SQL_SetCharset(Handle database, const char[] charset)

Parameters

Handle database

Database Handle.

const char[] charset

The character set string to change to.

Return Value

True, if character set was changed, false otherwise.