What kind of character is "MZ" (unexpected token)?

167 Views Asked by At

I've got a program which is supposed to open files of a custom file type using file association. When doing it from inside the program, it does work correctly. But trying "Open with..." gives me an Error at line 1, Pos 2:Unexpected token (MZ) encountered.

Here's the file's content:

{
    "id" : "favouritecar",
    "hinweis" : "",
    "fragen" : {
            "0" : ["Car?", "Rolls-Royce", "Ford"]
    }
}

What is MZ and how can I remove it from the respective file?

1

There are 1 best solutions below

1
On BEST ANSWER

The characters MZ are the first two bytes of .exe files.

https://en.m.wikipedia.org/wiki/DOS_MZ_executable

Sounds like however you’re launching the program, it’s trying to read itself as input. Check how you’re formatting the command line.