Remove special characters like smileys, emojis and more

Bulk Rename Utility How-To's

Remove special characters like smileys, emojis and more

Postby Neil » Mon Aug 30, 2021 5:50 am

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
Neil
 
Posts: 7
Joined: Mon Nov 05, 2018 2:07 am

Re: Remove special characters like smileys, emojis and more

Postby Luuk » Mon Aug 30, 2021 2:43 pm

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.
Luuk
 
Posts: 690
Joined: Fri Feb 21, 2020 10:58 pm

Re: Remove special characters like smileys, emojis and more

Postby Neil » Tue Aug 31, 2021 12:01 am

It worked, thank you !!
I don’t understand why, but that’s not important :-)
Neil
 
Posts: 7
Joined: Mon Nov 05, 2018 2:07 am


Return to How-To