SQL_SetCharset

Синтаксис

native bool:SQL_SetCharset(Handle:h, const charset[]);

Употреба

h
Database or connection tuple Handle.
charset
The character set string to change to.

Описание

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

Забележка

If a connection tuple is supplied, this should be called before SQL_Connect or SQL_ThreadQuery.

Забележка

The change will remain until you call this function with another value.

Забележка

This native does nothing in SQLite.

Example: "utf8", "latin1"

Връщаща стойност

True, if character set was changed, false otherwise.