Some entities get wrongly encoded, when using entities_processNumerical=true #4941
Labels
plugin:entities
The plugin which probably causes the issue.
status:confirmed
An issue confirmed by the development team.
type:bug
A bug.
Milestone
Type of report
Bug
Provide detailed reproduction steps (if any)
Open JSFiddle to see the problem: https://jsfiddle.net/veyd1gjn/10/
There is an Emoji in there 👍 and the config.entities_processNumerical is set to true.
When switching to Sourcecode of the Editor and back, the Emoji is destroyed, showing ��
In Sourcecode view it is encoded to: "��"
The correct value would be "👍"
Maybe, it is because the number is larger than 0xFFFF ?
Expected result
The expected result, that the encoded entity is correctly encoded and decoded.
Actual result
The entity is destroyed. From 👍 to ��
Other details
The text was updated successfully, but these errors were encountered: