16

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/

Community
  • 1
  • 1
Shou
  • 1,879
  • 17
  • 29
  • The `U+FE0E` variation selector supported by iOS is the [official way](http://unicode.org/Public/UCD/latest/ucd/StandardizedVariants.html) to select between emoji and text style. If Chrome on Android doesn't support this selector, I guess it's impossible to disable emojis. – nwellnhof Nov 27 '15 at 23:14
  • 2
    a note to say this is still the case almost 2 years later... – daviestar Feb 02 '16 at 13:48
  • https://crbug.com/491556 – Josh Lee Jan 09 '17 at 19:26

2 Answers2

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?

Community
  • 1
  • 1
Rob
  • 2,618
  • 2
  • 22
  • 29
  • 2
    This doesn't work for the "Emoji for Google Chrome" extension – rubo77 Jul 23 '17 at 07:23
  • This doesn't work for me either. It's also hard to tell where to append the `︎` "at the end of the string". Is it `content: '\25B6 \FE0E︎'` or `content: '\25B6︎'` or `content: '\25B6 \FE0E'︎`, or ? – Sam Sverko Sep 14 '21 at 14:42
  • @SamSverko if you read the comments in referenced stack overflow you will notice that some of the comments indicate that it does not work for certain fonts. Sorry this did not work for you – Rob Sep 14 '21 at 19:06
  • @Rob I've tried it with different fonts. Is there a specific code-snippet that worked for you? Would be helpful to add that to your answer. – Sam Sverko Sep 15 '21 at 16:10
  • @SamSverko I no longer work at the place where I needed to do this. sorry. or I would pull it up and build you an example. – Rob Sep 15 '21 at 16:45
1

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.

Clay Allen
  • 11
  • 1