encode

package
v0.0.0-...-71c6e05 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 3, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertByteToUtf8

func ConvertByteToUtf8(input []byte) (output []byte, err error)

ConvertByteToUtf8 checks whether the provided input is UTF8 encoded. If that is not the case, it will assume that the input is instead encoded in ISO 8859-1 / cp1252 and convert this to UTF8

func ConvertStringToUtf8

func ConvertStringToUtf8(input string) (output string, err error)

ConvertStringToUtf8 checks whether the provided input is UTF8 encoded. If that is not the case, it will assume that the input is instead encoded in ISO 8859-1 / cp1252 and convert this to UTF8

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL