Posted Mar 24, 2010 17:47 UTC (Wed) by Nahor (subscriber, #51583)
In reply to: UTF-16 by clugstj
Parent article: Resetting PHP 6
When Java was invented, Unicode was 16 bits only, UTF-16 didn't exist and UCS-2 was the encoding of choice. So it all made sense at the time.
Shortly after, Unicode was extended to 32 bits (Unicode 2.0).
Java became UTF-16 only with Java 5.0 (JDK/JRE 1.5) and UTF-8 was not much of an option anymore if they wanted to stay compatible with older Java code.
It's the same thing with the Unicode support in Windows by the way (except that they are still UCS-2 AFAIK)