PHP Classes

Unicode is a MUST

Recommend this page to a friend!

      PHP Classes blog  >  PHP Zeitgeist: What P...  >  All threads  >  Unicode is a MUST  >  (Un) Subscribe thread alerts  
Subject:Unicode is a MUST
Summary:Unicode is a MUST
Messages:3
Author:Jozef Hribik
Date:2010-01-07 07:07:23
Update:2010-01-07 18:06:35
 

  1. Unicode is a MUST   Reply   Report abuse  
Picture of Jozef Hribik Jozef Hribik - 2010-01-07 07:08:39
I am waiting for full unicode support in core of PHP6.

  2. Re: Unicode is a MUST   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2010-01-07 08:12:44 - In reply to message 1 from Jozef Hribik
Maybe 2010 will be PHP 6 year finally, or not, maybe it has the same fate of Perl 6 that never got finished.

My suggestion is for you to not hold your breath for PHP 6 anytime. I may be wrong but the tasks it requires to be finished are not trivial.

If you really need Unicode support, I suggest that you abstract the encoding dependent functionality in a class, like for instance strlen or substr. Then when PHP 6 comes out, replace the class calls with native function calls.

  3. Re: Unicode is a MUST   Reply   Report abuse  
Picture of Jozef Hribik Jozef Hribik - 2010-01-07 18:06:35 - In reply to message 2 from Manuel Lemos
I already grasp all those necessary tips and tricks to build multilingual PHP applications with UTF-8 encoding, but it is always a nightmare to teach new programmers the correct usage of this know-how. I wish PHP has unicode in core like Java has, and we do not need to use workarrounds.