0

Is it possible remove all utf8 icons in string? I want remove utf8 chars in input for firstname and lastname but I don't want remove Chinese, Russian... chars.

Expected behaviour:

removeUtf8Icons('John'); // output John
removeUtf8Icons('♠John♠'); // output John
removeUtf8Icons('★John★'); // output John
removeUtf8Icons('☂John Doe☂'); // output John Doe
removeUtf8Icons('☎习近平 習近平'); // output 习近平 習近平
removeUtf8Icons('☎алфави́т'); // output алфави́т

Here is list of utf8 icons which I want remove:

https://www.w3schools.com/charsets/ref_utf_symbols.asp

Thanks in advance

0 Answers0