Tuesday 23 July 2019

android - Unicode character fallback?




Certain mobile browsers do not seem to support all unicode characters, like this down arrow icon:



span.icon:after {
content:"\25be";
}


Simply nothing is displayed. How can I detect this and provide either fallback text or an image?


Answer



I'm not sure about fallback, but you may want to try

content:"\25bc"
(larger arrow)
instead of
content:"\25be"
It is said to be better supported.
See also https://stackoverflow.com/a/2701226


No comments:

Post a Comment

php - file_get_contents shows unexpected output while reading a file

I want to output an inline jpg image as a base64 encoded string, however when I do this : $contents = file_get_contents($filename); print &q...