UTF8MB4SupportInterface

Interface defining a driver which has support for the MySQL `utf8mb4` character set

since

2.0.0

package

Joomla Framework

Methods

convertUtf8mb4QueryToUtf8

Automatically downgrade a CREATE TABLE or ALTER TABLE query from utf8mb4 (UTF-8 Multibyte) to plain utf8.

convertUtf8mb4QueryToUtf8(string query) : string

Used when the server doesn't support UTF-8 Multibyte.

since

2.0.0

Arguments

query

stringThe query to convert

Response

stringThe converted query

hasUtf8mb4Support

Check whether the database engine supports the UTF-8 Multibyte (utf8mb4) character encoding.

hasUtf8mb4Support() : bool
since

2.0.0

Response

boolTrue if the database engine supports UTF-8 Multibyte.