Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetFileEncoder ¶
GetFileEncoder creates encoder with file encoding type and encoding name according to its encoding type, currently supports UTF-8, UTF-8 with BOM, UTF-16LE, UTF-16BE. The returned encoder does not add BOM at the start of the transformed buffer.
This function also tries to guess encoding type for some weird files with no BOM prepended(especially UTF-16LE and UTF-16BE files).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.