encoding

package
v2.3.1 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package encoding provides a replacement encoder and decoder for use with mime.CharsetEncoder and mime.CharsetDecoder. This loads all the encodings provided with:

* golang.org/x/text/encoding/ianaindex

This will make the size of your compiled binaries considerably larger. But it will also give your code the ability to encode and decode pretty much any character set it might encounter in the wild wild world of email.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CharsetDecoder

func CharsetDecoder(charset string, b []byte) (string, error)

CharsetDecoder provides a replacement decoder for mime.CharsetDecoder, which can decode a wide range of rare and unusual character sets.

func CharsetEncoder

func CharsetEncoder(charset, s string) ([]byte, error)

CharsetEncoder provides a replacement encoder for mime.CharsetEncoder, which can encode a wide range of rare and unusual character sets.

Types

This section is empty.

Jump to

Keyboard shortcuts

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