Created
April 8, 2020 06:27
-
-
Save ricardodantas/4088307aeb8e389dc5046db4c59e7302 to your computer and use it in GitHub Desktop.
Convert string to a valid utf8 string (remove emojis)
This file contains hidden or 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
const mystringVar = "abcde \x31\xE2\x83\xA3" | |
myStringVar.replace(/[^\x20-\x7E]+/g, "") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment