Modules/MTA-MySQL/mysql get character set info
Jump to navigation
Jump to search
This function is provided by the external module MTA-MySQL. You must install this module to use this function. | |
Retreives information about a character set
Syntax
string, string, string, string, int, int mysql_get_character_set_info ( MySQLConnection handler, string character_set_name )
Required arguments
- handler: A valid MySQL link
- character_set_name: The character set name
Returns
The character set information:
- The charset name
- The charset collation
- The charset comment
- The charset directory
- Multi byte character min. length
- Multi byte character max. length
Example
Example 1:
local name, collation, comment, directory, mbminlen, mbmaxlen = mysql_get_character_set_info(handler, "utf8") -- We will return information about the charset "utf8" outputDebugString("UTF-8 charset information:\n" .. "name: " .. name .. "\n" .. "collation: " .. collation .. "\n" .. "comment: " .. comment .. "\n" .. "directory: " .. directory .. "\n" .. "mbminlen: " .. mbminlen .. "\n" .. "mbmaxlen: " .. mbmaxlen)
See also
- mysql_connect
- mysql_close
- mysql_errno
- mysql_error
- mysql_ping
- mysql_select_db
- mysql_escape_string
- mysql_affected_rows
- mysql_change_user
- mysql_get_character_set_info
- mysql_get_client_info
- mysql_get_client_version
- mysql_get_host_info
- mysql_get_proto_info
- mysql_get_server_info
- mysql_get_server_version
- mysql_hex_string
- mysql_info
- mysql_insert_id
- mysql_query
- mysql_unbuffered_query
- mysql_set_character_set
- mysql_stat
- mysql_warning_count