Need help with the Error: Stray '\302' in program

Hello. I am trying to get this program to work for a school project. I keep getting this Stray '\302' error and Stray '\204' error. Can anyone help me fix this? I'm really stuck and this project is due soon. Thanks!

Enigma_check.ino (35 KB)

Those (pretty common) errors usually occur when a sketch is copied from a web page. They are invisible characters that the IDE does not recognize. A search of this site will yield a solution.

1 Like

Sorry, I'm confused. How do I get rid of these invisible characters?

The offending character is shown in the error message output. A simple find/replace in your favourite text editor will do the trick. I got it to compile by doing that but I presume you're not using an Uno because uses way too much memory for an Uno

Yeah, I'm using a mega. What's a good text editor that can find these characters? Mine can't seem to find it.

Thanks guys. I finally got it figured out!

1 Like