encoding

package
v2.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CharsetReader

func CharsetReader(charsetLabel string, input io.Reader) (io.Reader, error)

CharsetReader is used when the XML encoding is specified for the input document.

The document is converted in UTF-8 only if a different encoding is specified and the document is not already UTF-8.

Several edge cases could exists:

- Feeds with encoding specified only in Content-Type header and not in XML document - Feeds with encoding specified in both places - Feeds with encoding specified only in XML document and not in HTTP header - Feeds with wrong encoding defined and already in UTF-8

Types

This section is empty.

Jump to

Keyboard shortcuts

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