Цитата: Bhudh от октября 12, 2020, 18:25В седьмой версии так же? Это вообще как-то поправить можно?
Это из-за того, что PHP не воспринимает строки, состоящие только из суррогатных пар.
Цитата: Валентин Н от октября 12, 2020, 19:41Эмодзи в той же первой плоскости.
Эмодзи тоже не видит.
Цитировать(wiki/en) Universal_Character_Set_characters#Surrogates
Surrogates
The UCS uses surrogates to address characters outside the initial Basic Multilingual Plane without resorting to more-than-16-bit byte representations. There are 1024 "high" surrogates (D800–DBFF) and 1024 "low" surrogates (DC00–DFFF). By combining a pair of surrogates, the remaining characters in all the other planes can be addressed (1024 × 1024 = 1048576 code points in the other 16 planes).
ЦитироватьCode points from U+010000 to U+10FFFF
Code points from the other planes (called Supplementary Planes) are encoded as two 16-bit code units called a surrogate pair, by the following scheme:
- 0x10000 is subtracted from the code point (U), leaving a 20-bit number (U') in the hex number range 0x00000–0xFFFFF. Note for these purposes, U is defined to be no greater than 0x10FFFF.
- The high ten bits (in the range 0x000–0x3FF) are added to 0xD800 to give the first 16-bit code unit or high surrogate (W1), which will be in the range 0xD800–0xDBFF.
- The low ten bits (also in the range 0x000–0x3FF) are added to 0xDC00 to give the second 16-bit code unit or low surrogate (W2), which will be in the range 0xDC00–0xDFFF.
Цитата: Bhudh от октября 12, 2020, 21:58Если глянуть на эту схему и её описание то не все, только D8–DFЦитата: Red Khan от октября 12, 2020, 19:39А зачем тогда они нужны?Из них составляются все коды высших диапазонов в UTF-16. Low_surrogate_code + high_surrogate_code.
Цитата: Red Khan от октября 12, 2020, 19:39А зачем тогда они нужны?Из них составляются все коды высших диапазонов в UTF-16. Low_surrogate_code + high_surrogate_code.
Цитата: Bhudh от октября 12, 2020, 19:15А зачем тогда они нужны?
Ну как заполнили. Суррогатные пары в диапазоне U+D800 — U+DFFF размещены.
Страница создана за 0.059 сек. Запросов: 24.