Login   Register  
PHP Classes
elePHPant
Icontem

PHP Detect Encoding: Detect the encoding of text from a file or string

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

  Author Author  
Picture of marcelo entraigas
Name: marcelo entraigas <contact>
Classes: 7 packages by
Country: Argentina Argentina
Age: 37
All time rank: 5486 in Argentina Argentina
Week rank: 245 Up4 in Argentina Argentina Up
Innovation award
Innovation award
Nominee: 1x


  Detailed description   Download Download .zip .tar.gz  
This class can detect the encoding of text from a file or string.

It can read the text from a file or a given string and detect different types of the UTF character encoding.

Currently it can distinguish UTF-8, UTF-16, UTF-32 little or big endian encodings. It returns false for unknown encodings.

  Classes of marcelo entraigas  >  PHP Detect Encoding  >  Download Download .zip .tar.gz  >  Support forum Support forum  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: PHP Detect Encoding
Base name: detect-encoding
Description: Detect the encoding of text from a file or string
Version: 1
PHP version: 5
License: BSD License
All time users: 480 users
All time rank: 5362
Week users: 1 user
Week rank: 1420 Up
 
  Groups   Rate classes User ratings   Applications   Files Files  

  Groups  
Group folder image PHP 5 Classes using PHP 5 specific features View top rated classes
Group folder image Text processing Manipulating and validating text data View top rated classes


  Innovation Award  
PHP Programming Innovation award nominee
January 2014
Number 6
Sometimes it is necessary to process text in a way that depends on which character encoding is used.

However, in some circumstances it may not be possible to know for sure what is the encoding of the text.

This class can guess the character encoding by analyzing part of the text.

Manuel Lemos

  User ratings  
Not enough user ratings

  Applications that use this package  
No pages of applications that use this class were specified.
Add link image If you know an application of this package, send a message to the author to add a link here.
  Files folder image Files  
File Role Description
Plain text file DetectEncoding.php Class Main php file

Download Download all files: detect-encoding.tar.gz detect-encoding.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.