Modules/MTA-MySQL/mysql get character set info: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
<pageclass class="#AA7592" subcaption="MTA-MySQL Module"></pageclass> | |||
__NOTOC__ | __NOTOC__ | ||
{{ModuleFunction|MTA-MySQL}} | {{ModuleFunction|MTA-MySQL}} |
Latest revision as of 17:42, 5 January 2011
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