Finding Non-ASCII Characters with Visual Studio
Does trying to find a curly quote, em dash, en dash or other non-ASCII character in Visual Studio cause your eyes to bleed? Do you need to make sure the HTML you are sending to your users doesn’t contain any unicode characters? Try searching your code with the following regular expression:
[^\x00-\x7f]
Open any of Visual Studio’s find windows and enter the regular expression above into the “Find what:” text box. Click the “Find Options” plus sign to expand the list of options. Check the last box “Use:” and choose “Regular expressions” from the drop down menu.
