utf7

package
v2.0.0-beta.3 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package utf7 implements modified UTF-7 encoding defined in RFC 3501 section 5.1.3

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidUTF7 = errors.New("utf7: invalid UTF-7")

ErrInvalidUTF7 means that a decoder encountered invalid UTF-7.

Functions

func Decode

func Decode(src string) (string, error)

Decode decodes a string encoded with modified UTF-7.

Note, raw UTF-8 is accepted.

func Encode

func Encode(src string) string

Encode encodes a string with modified UTF-7.

func Escape

func Escape(src string) string

Escape passes through raw UTF-8 as-is and escapes the special UTF-7 marker (the ampersand character).

Types

This section is empty.

Jump to

Keyboard shortcuts

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