top of page

As an Amazon Associate we earn from qualifying purchases, more info...

AI Pasted Unicode In Visual Studio (how to find it)

  • Writer: Mark Redman
    Mark Redman
  • 4 days ago
  • 1 min read
AI Code
AI Code

When using ChatGPT and other AI tools to generate code snippets, ChatGPT insists on adding Unicode to comments, and Visual Studio complains about the encoding.


Sometime these Unicode characters are obvious but why do Unicode variations of 1, 2, 3 + etc need to be used (not sure, formatting) To find search and remove these in Visual Studio Go to the search text box: (CTRL-F) Select the regular expression search filter: .* Add this regular expression: [^\x00-\x7f] This will highlight the unicode characters Done.



 
 
 
bottom of page