[英]What kind of character is "MZ" (unexpected token)?
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.
但是尝试“打开方式...”
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?什么是 MZ,如何从相应文件中删除它?
The characters MZ are the first two bytes of.exe files.字符 MZ 是 .exe 文件的前两个字节。
https://en.m.wikipedia.org/wiki/DOS_MZ_executable 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.
检查您如何格式化命令行。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.