GithubHelp home page GithubHelp logo

mnhdck / uchardet Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sraach/uchardet

0.0 2.0 0.0 169 KB

Fast character set encoding detection using International Components for Unicode C++ library.

Home Page: http://github.com/invisiblellama/uchardet/tree/master

Ruby 56.94% C 43.06%

uchardet's Introduction

uchardet

DESCRIPTION:

Fast character set encoding detection using International Components for Unicode C++ library.

SYNOPSIS:

require 'open-uri'
require 'uchardet'

encoding = ICU::UCharsetDetector.detect open('http://google.jp').read
encoding # => {:language=>"ja", :encoding=>"Shift_JIS", :confidence=>100}

From command line:

$ uchardet

Usage: uchardet [options] file
    -l, --list                       Display list of detectable character sets.
    -s, --strip                      Strip HTML or XML markup before detection.
    -e, --encoding                   Hint the charset detector about possible encoding.
    -a, --all                        Show all matching encodings.
    -h, --help                       Show this help message.

$ uchardet `which uchardet`

ISO-8859-1 (confidence 60%)

REQUIREMENTS:

ICU (International Components for Unicode):

on Mac OS X:

sudo port install icu

on Debian/Ubuntu

sudo apt-get install libicu-dev

INSTALL:

sudo gem install uchardet

LICENSE:

Copyright © 2009 Dmitri Goutnik, released under the MIT license.

uchardet's People

Contributors

dmgk avatar

Watchers

James Cloos avatar Chris Mahome avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.