Page 1 of 1

Remove special characters like smileys, emojis and more

PostPosted: Mon Aug 30, 2021 5:50 am
by Neil
I have the problem, that I have many file with special characters like smileys, emojis and more
how can I remove them and similar wrong characters?
thanks

Re: Remove special characters like smileys, emojis and more

PostPosted: Mon Aug 30, 2021 2:43 pm
by Luuk
The RegEx(1) can match a range of characters, so it depends on what means 'similiar wrong characters'.
To destroy all of the unicodes, you can put a checkmark in "v2", so then using a 'Match' like...
[^\x20-\x7F]+/g

But to only destroy 'similiar wrong characters', Im thinking it should be more like...
(\xf0.|\xe2)../g

If the second regex destroys too many unicodes, then somewhere must post samples of similiar wrong characters.
Its unfortunate, but I think the bru forum software does forbid the posting of these special characters?
But there is probably some websites to grant posting them, so then maybe providing a link to see them.

Re: Remove special characters like smileys, emojis and more

PostPosted: Tue Aug 31, 2021 12:01 am
by Neil
It worked, thank you !!
I don’t understand why, but that’s not important :-)