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.
|
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 |
|
|
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 |
|
Applications that use this package |
|
No pages of applications that use this class were specified.
If you know an application of this package, send a message to the author to add a link here.
|
Files |
|