Disable unicode replacement emoji in Android Chrome?

三世轮回 提交于 2020-01-01 04:22:27

问题


Certain unicode characters in the Miscellaneous range would be nice to use, but most phones display them as emoji and that is unwanted because then they can't be styled by CSS font declarations. I know there's a fix for iOS, but I have not found a solution for Android. Is it possible to disable them?

Example: http://jsbin.com/qopiyori/1/


回答1:


Had the same problem, found the answer on another stack overflow question which worked for me:

add ︎ at the end of the string with the Unicode characters you do not want to be replaced with emoji icons.

How to prevent Unicode characters from rendering as emoji in HTML from JavaScript?




回答2:


Google Chrome, desktop version 75, seems to disambiguate its approach to rendering Unicode characters based on the first Unicode escape it encounters while loading a page. For instance, when parsed as the first HTML Unicode escape in a page source, and having no emoji equivalent, ⏷ seems to clarify to Chrome that the page contains escapes not to be rendered as emoji. I have not tried this in Android Chrome.



来源:https://stackoverflow.com/questions/25181810/disable-unicode-replacement-emoji-in-android-chrome

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!