Unicode character description escape
P粉489081732
P粉489081732 2023-09-10 13:16:56
0
1
541

I'm revisiting a browser plugin I created a while ago that provides conversion to and from various Unicode escape sequences.

However, I have now absentmindedly forgotten, and have been unable to rediscover, that mentions of languages ​​where escape sequences like \C{Latin Small Letter A} are supposed to work (Unicode descriptions) are actually Unicode character replacement, in this case "a").

I believe it is written in PHP, or at least a proposal for PHP, but I don't see any spec supporting this syntax right now.

P粉489081732
P粉489081732

reply all(1)
P粉953231781

PHP can only use code points

$ php -r 'var_dump("\u{2615}");'
string(3) "☕"

Python can

>>> import unicodedata

>>> print(unicodedata.lookup('Hot Beverage'))
☕

You can use a Python script and call it from PHP

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template