Need more information before I can suggest what is happening.
I assume you have a G-code file (Without % signs) and you are sending the file to a machine via a serial link (possibly dripfeeding). If so, there could be an error with the Communication setup itself either cable not correctly wired or incorrect serial communication protocol. "%" was often used to replace an unknown character in the data.