Skip to content

mysql_set_charset

imshooter edited this page Nov 29, 2026 · 1 revision

Change the character set of a handle, for the queries sent after it.

native bool:mysql_set_charset(const charset[], MySQL:handle = MYSQL_DEFAULT_HANDLE);

With open.mp names, from the same include:

native bool:MySQL_SetCharset(const charset[], MySQL:handle = MYSQL_DEFAULT_HANDLE);

Parameters

Parameter Description
const charset[] The character set, as utf8mb4.
MySQL:handle = MYSQL_DEFAULT_HANDLE The handle.

Returns

  • true when it was changed.
  • false when the handle does not exist, or the character set cannot be escaped safely.

Home

Guides

Reference

Functions

Connections
Queries
Cache
JSON cells
ORM
Queries built in pieces
Prepared statements
Batches
Transactions
Passwords
Callbacks

Clone this wiki locally