charset

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// UTF8 Unicode Transformation Format 8-bit encoding. Universal character encoding
	// supporting all languages and symbols. Recommended standard for all web content.
	UTF8 = Charset("UTF-8")

	// ISO88591 Latin-1 character encoding supporting Western European languages.
	// Legacy encoding largely superseded by UTF-8 for new applications.
	ISO88591 = Charset("ISO-8859-1")

	// Windows1252 Windows character encoding extending Latin-1 with additional characters.
	// Common on Windows systems but UTF-8 is preferred for web applications.
	Windows1252 = Charset("windows-1252")
)

Variables for Charset values

Functions

This section is empty.

Types

type Charset

type Charset []byte

Charset Character encoding constants for accept-charset and meta charset attributes. Standard character encodings for proper text processing and internationalization.

func Custom

func Custom(value string) Charset

Custom allows setting a custom Charset value for edge cases or future specifications. Use this when the predefined constants don't cover your specific use case.

Jump to

Keyboard shortcuts

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