Module encode

Module encode 

Source
Expand description

编码

Functions§

a_auto_decode_file
Asynchronously reads a file and automatically decodes its content.
auto_decode
Automatically detects encoding and decodes the input byte sequence.
auto_decode_all
Automatically detects encoding and decodes the input byte sequence.
auto_decode_file
Synchronously reads a file and automatically decodes its content.
auto_decode_simple
Automatically detects encoding and decodes the input byte sequence.
check_bom
内联 BOM 检查,避免额外的函数调用
get_lang
获取当前语言
get_lang_encoding
获取语言编码
is_garbled
检查是否为乱码
is_utf8
检查是否为 UTF-8 编码