ArduinoA
Arduino6mo ago
FaZ

"Compilation error: grpc: error while marshaling: string field contains invalid UTF-8"

hi,
im pretty new to coding and i have a problem with the compilation of my code for Arduino:
when i open the code in arduino ide and once its loaded click on verify everything compiles without errors but when i change anything e.g. put a space character somewhere(even in another file) it outputs the following error:

grpc: error while marshaling: string field contains invalid UTF-8

Compilation error: grpc: error while marshaling: string field contains invalid UTF-8

but if i now save that file with the extra space character everything compiles without errors again.
but deleting the space without saving there still is an error. although nothing changed from the saved file to the one that had the space which then was removed.
how does that make any sense?
it compiles when i delete this cpp file and try it again so i suspect it to be the problem.
i also tried pasting the code on this website but the website didnt find any non-utf8 characters: https://onlinetools.com/utf8/validate-utf8
World's simplest online utility that validates UTF8 data. Free, quick, and powerful. Import UTF8 – validate UTF8.
Was this page helpful?
"Compilation error: grpc: error while marshaling: string field contains invalid UTF-8" - Arduino