Popularity
1.5
Stable
Activity
0.0
Stable
16
1
5
Programming language: Go
License: MIT License
enca alternatives and similar packages
Based on the "blackfriday" category.
Alternatively, view enca alternatives based on common mentions on social networks and blogs.
-
bluemonday
bluemonday: a fast golang HTML sanitizer (inspired by the OWASP Java HTML Sanitizer) to scrub user generated content of XSS -
mxj
Decode / encode XML to/from map[string]interface{} (or JSON); extract values with dot-notation paths and wildcards. Replaces x2j and j2x packages. -
go-pkg-rss
DISCONTINUED. This package reads RSS and Atom feeds and provides a caching mechanism that adheres to the feed specs. -
go-pkg-xmlx
DISCONTINUED. Extension to the standard Go XML package. Maintains a node tree that allows forward/backwards browsing and exposes some simple single/multi-node search functions. -
github_flavored_markdown
GitHub Flavored Markdown renderer with fenced code block highlighting, clickable header anchor links.
CodeRabbit: AI Code Reviews for Developers
Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
Promo
coderabbit.ai

Do you think we are missing an alternative of enca or a related project?
Popular Comparisons
README
enca 
This is a minimal cgo bindings for libenca.
If you need to detect the language of a string you can use guesslanguage package.
Supported Go versions
enca is tested against Go 1.0, 1.1, 1.2, 1.3 and tip.
Usage
Install libenca to your system:
$ sudo apt-get install libenca0 libenca-dev
Install in your ${GOPATH}
using go get -u github.com/endeveit/enca
Then call it:
package main
import (
"fmt"
"github.com/endeveit/enca"
)
func main() {
analyzer, err := enca.New("zh")
if err == nil {
encoding, err := analyzer.FromString("美国各州选民今天开始正式投票。据信,", enca.NAME_STYLE_HUMAN)
defer analyzer.Free()
// Output:
// UTF-8
if err == nil {
fmt.Println(encoding)
}
}
}
Documentation
godoc is available here.