I've recently had a few students break their ability to knit by inserting obscure UTF8 characters into their documents. I suspect they're copying and pasting text from the Web and, as a result, accidentally inserting text that is nearly undetectable to the human eye but breaks regular latex (see example Rmd below). The copying and pasting is one issue but, apart from that, I wonder if there is any way to "Zap Gremlins" as the Mac text editor BBEdit calls the feature. Basically, I just want to be able to see the UTF8 text
--- title: "Unicode Test" output: pdf_document --- ## How to detect Unicode? While the comma space at the end of this clause look normal to the eye ->，<- it is actually a single Unicode character U+FF0C. It`s hard to even search and replace for because the comma-space is a single character (try selecting it). For more, see: https://codepoints.net/U+FF0C?lang=en This can easily break knitting R Markdown to a pdf (unless you specify xelatex as the latex_engine). Locating the offending Unicode within R Studio is hard. Is there any kind of `find Unicode Gremlins` addin or option for RStudio?