Can I test emojis and surrogate pairs?
  • 13 Nov 2023
  • 1 Minute to read
  • Contributors
  • Dark
    Light

Can I test emojis and surrogate pairs?

  • Dark
    Light

Article Summary

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?

Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.