- Print
- DarkLight
Can I test emojis and surrogate pairs?
Article summary
Did you find this summary helpful?
Thank you for your feedback
What are surrogates?
Surrogates, or surrogate pairs, are pairs of UTF-16 code values that encodes one special character such as an emoji.
Reference: https://unicode.org/faq/utf_bom.html#utf16-2
Chromium, Chrome and Edge
Chromium only supports BMP characters which includes 182 characters that can be treated as text or emojis depending on the surrogates.
As a result, Chromium-based browsers such as Chrome or Edge can only handle these surrogates.
There is no workaround to this limitation so if you need to run tests on Chrome and Chromium-based browsers, please only use BMP characters.
Firefox and Safari
Emojis and surrogate pairs are supported.
Was this article helpful?