Skip to content

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.

License

Notifications You must be signed in to change notification settings

amake/UniversalDetector2

This branch is 18 commits ahead of siuying/UniversalDetector:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
Dec 12, 2022
Aug 22, 2015
Jul 25, 2013
Dec 11, 2022
Sep 10, 2020
Dec 11, 2022
Sep 11, 2020
Sep 10, 2020
Sep 7, 2013
May 7, 2013
Oct 21, 2020
Sep 10, 2020
Dec 11, 2022

Repository files navigation

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.

About

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.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • HTML 97.1%
  • Objective-C 2.5%
  • Ruby 0.4%