Created
October 14, 2017 10:06
-
-
Save agusputra/1df2453d821451179ca4111cea75cdc5 to your computer and use it in GitHub Desktop.
Get UTF-8 bit/byte representation of unicode character in JS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
new TextEncoder('utf-8').encode('\u0001') | |
new TextEncoder('utf-8').encode('\uffff') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment