Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does actually mean by "Native Unicode Support" in PHP and why PHP does not support "Native Unicode Support" even in PHP 7 releases?

P.S. : I'm using PHP 7.2.2 on my machine that runs on Windows 10 Home Single Language edition. I'm using PHP from the installed XAMPP v3.2.2

Consider all my doubts as regarding to PHP 7 only.

Please have a look at the following text from the Strings page of PHP Manual :

A string is series of characters, where a character is the same as a byte. This means that PHP only supports a 256-character set, and hence does not offer native Unicode support.

The above text has raised so many questions in my mind as below :

  1. What does actually mean by "256-character set" in the context of PHP here? Which 256 characters are involved in this so called 256-character set? What is the official name of this "256-character set" in PHP context?
  2. What does actually mean by "Native Unicode Support"?
  3. I heard that abandoned PHP 6 release was about to incorporate "Native Unicode Support" but somehow it never got released and finally abandoned. So, I expected PHP 7 will incorporate "Native Unicode Support" but the manual is saying it still doesn't supported as of PHP 7? Why so?
  4. How PHP overcame this drawback in PHP 7 releases?
  5. Can the website be created in PHP which supports multiple languages, especially Indian Languages as PHP is not having "Native Unicode Support"?
like image 982
PHPLover Avatar asked Dec 14 '25 23:12

PHPLover


1 Answers

  1. It means first 256 (out of 1 114 112 possible characters; 17 x 65 536) characters of Unicode characters set.
  2. Native letters, like ą, č, etc.
  3. Native letters are placed at the end of Unicode set after 256 character position, so that's why PHP does not support it.
like image 147
Justinas Avatar answered Dec 16 '25 13:12

Justinas



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!