How To Catch an invalid Unicode Char

making a twitch bot but sometimes messages are terminated with a weird invalid Unicode char \U000e000 i want to remove that char from the string but dont know how to catch it as message.Replace('\U000e000', (char)32) is invalid
0 Replies
No replies yetBe the first to reply to this messageJoin