Git Product home page Git Product logo

jonathanlu98 / universaldetector2 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from amake/universaldetector2

0.0 0.0 0.0 423 KB

Wrapper of uchardet for Objective-C. UniversalDetector2 takes a sequence of bytes in an unknown character encoding without any additional information, and attempts to determine the encoding of the text.

Home Page: https://cocoapods.org/pods/UniversalDetector2

License: Mozilla Public License 2.0

Ruby 0.44% Objective-C 2.53% HTML 97.03%

universaldetector2's Introduction

UniversalDetector2 for Objective-C

UniversalDetector2 is a wrapper for uchardet, which is based on C++ implementation of the universal charset detection library by Mozilla.

UniversalDetector2 is an encoding detector library, which takes a sequence of bytes in an unknown character encoding without any additional information, and attempts to determine the encoding of the text.

UniversalDetector2 is a drop-in replacement for UniversalDetector with an updated version of the underlying uchardet library.

Usage

CFStringEncoding encoding = [UniversalDetector encodingWithData:data];
NSString* encodingStr      = [UniversalDetector encodingAsStringWithData:data];

Installation

If you use CocoaPods, add following line to your Podfile:

pod 'UniversalDetector2'

Otherwise, add 'UniversalDetector/.{h,m}', 'external/.{h,cpp}', 'external/universalchardet/src/base/*.{cpp,h,tab}' and library 'libstdc++' to your project.

LICENSE

Mozilla Public License, refer to file LICENSE.

universaldetector2's People

Contributors

siuying avatar amake avatar zetachang avatar jonathanlu98 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.