I'm just wondering if there is a method in .NET 2.0 that checks whether a character is printable or not – something like isprint(int)
from standard C.
I found Char.IsControl(Char)
.
Could that be used for this purpose?
The isprintable() method returns “True” if all characters in the string are printable or the string is empty, Otherwise, It returns “False”. This function is used to check if the argument contains any printable characters such as: Digits ( 0123456789 ) Uppercase letters ( ABCDEFGHIJKLMNOPQRSTUVWXYZ )
Option #1 - Show All Characters Then, go to the menu and select View->Show Symbol->Show All Characters . All characters will become visible, but you will have to scroll through the whole file to see which character needs to be removed.
You might want to use Char.IsControl(Char)
. That is what I'm using. You definitely do not want to use the <0x20
method because any non-latin character and most non-english characters will be above 127.
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