go-unidecode: github.com/mozillazg/go-unidecode Index | Examples | Files | Directories

package unidecode

import "github.com/mozillazg/go-unidecode"

Package unidecode provide ASCII transliterations of Unicode text

s := "北京kožušček"
fmt.Println(unidecode.Unidecode(s))
// Output: Bei Jing kozuscek

Index

Examples

Package Files

doc.go unidecode.go

func Unidecode Uses

func Unidecode(s string) string

Unidecode implements transliterate Unicode text into plain 7-bit ASCII. e.g. Unidecode("kožušček") => "kozuscek"

Code:

s := "北京kožušček"
fmt.Println(unidecode.Unidecode(s))

Output:

Bei Jing kozuscek

Code:

s := "abc"
fmt.Println(unidecode.Unidecode(s))

Output:

abc

func Version Uses

func Version() string

Version return version

Directories

PathSynopsis
table
unidecode

Package unidecode imports 3 packages (graph) and is imported by 10 packages. Updated 2019-04-05. Refresh now. Tools for package owners.