package
1.8.0
Repository: https://github.com/jolheiser/gitea.git
Documentation: pkg.go.dev

# Functions

DetectEncoding detect the encoding of content.
RemoveBOMIfPresent removes a UTF-8 BOM from a []byte.
ToUTF8 converts content to UTF8 encoding and ignore error.
ToUTF8DropErrors makes sure the return string is valid utf-8; attempts conversion if possible.
ToUTF8WithErr converts content to UTF8 encoding.
ToUTF8WithFallback detects the encoding of content and coverts to UTF-8 if possible.

# Variables

UTF8BOM is the utf-8 byte-order marker.