I'm trying to parse some phone numbers, and I have a function to check if the parsed string is made up of only numbers or the + sign.
In some of them there is an hiden character of value 8236.
Comparing it against '\0' and '\u8236' doesnt work...
What is this character and how do I remove it?
Thanks to @Maximilian Gerhardt who sent this link in a comment https://www.fileformat.info/info/unicode/char/202c/index.htm
I was able to know that 8236 corresponds to character '\u202c'
So I did str.Trim('\u202c')
And it did work
edit:
The simple way to get the corresponding code is to convert from decimal to hex.
8236(decimal) -> 202C(hexadecimal)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With