© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago
MasterAirscrach

How To Catch an invalid Unicode Char

making a twitch bot but sometimes messages are terminated with a weird invalid Unicode char
\U000e000
\U000e000
i want to remove that char from the string but dont know how to catch it as
message.Replace('\U000e000', (char)32)
message.Replace('\U000e000', (char)32)
is invalid
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

❔ Inserting Unicode characters into an Oracle database-issue
C#CC# / help
3y ago
How To Properly Catch An SMTPException & IOException
C#CC# / help
15mo ago
❔ how do i convert a char to an int
C#CC# / help
3y ago
✅ How to create char[] faster?
C#CC# / help
3y ago