PHP Classes

Unicode Manipulation: Manipulate text with Unicode encodings

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStarStar 72%Total: 1,734 All time: 2,266 This week: 44Up
Version License PHP version Categories
unicode 1.0GNU Lesser Genera...5.0PHP 5, Text processing
Description 

Author

This class can be used to manipulate text with Unicode encodings.

It can perform several types of operations that involve text strings encoded as UTF-8, UTF-16 or UTF-32, like:

- Get the text sequence for byte order mark for little and big endian
- Convert a given character code to Unicode encoded text and vice-versa
- Get the byte length of a given Unicode encoded character
- Convert text encoding between UTF-8, UTF-16 and UTF-32
- Get a part of an Unicode encoded string from a given position and an optional length
- Get the string length of an Unicode encoded text
- Determine whether a given string has Unicode encoded text

Innovation Award
PHP Programming Innovation award nominee
January 2009
Number 7


Prize: One book of choice by Apress
Unicode is the way to go when you need to mix texts that use different character sets in the same page.

There are several solutions to manipulate strings using Unicode. However most of them only manipulate text encoded in one of possible Unicode encodings: UTF-8 .

This class provides a complete solution to manipulate Unicode encoded text supporting UTF-16 and UTF-32 besides UTF-8.

Manuel Lemos
Picture of Rubens Takiguti Ribeiro
  Performance   Level  
Name: Rubens Takiguti Ribeiro <contact>
Classes: 8 packages by
Country: Brazil Brazil
Innovation award
Innovation award
Nominee: 4x

  Files folder image Files (7)  
File Role Description
Plain text file unicode.class.php Class Main Class
Accessible without login Plain text file doc.php Aux. Class Documentation
Accessible without login Plain text file test_convert.php Test Test converting
Accessible without login Plain text file test_equal.php Test Test equal
Accessible without login Plain text file test_size.php Test Test character size
Accessible without login Plain text file example.php Example Examples of how to print a text file using unicode encoding
Accessible without login Plain text file LICENSE.TXT Doc. License

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:1,734
This week:0
All time:2,266
This week:44Up
User Ratings User Comments (1)
 All time
Utility:87%StarStarStarStarStar
Consistency:79%StarStarStarStar
Documentation:70%StarStarStarStar
Examples:70%StarStarStarStar
Tests:70%StarStarStarStar
Videos:-
Overall:72%StarStarStarStar
Rank:154
 
good study matter since I am studding Unicode.
12 years ago (shyam singh)
72%StarStarStarStar