Lua Methods Reference > General Methods > convert_encoding

convert_encoding
The convert_encoding method converts the encoding of a string from one character encoding to another.
Syntax
convert_encoding( input, encodingTo, encodingTables, [, encodingFrom])
Arguments
 
(string) The character encoding to convert to (same as IDOL encoding names).
(string) The character encoding to convert from. The default is “UTF8”.
Returns
(String). A string, using the specified character encoding.