Using 64-bit preprocessor
Starting Dynare (version 4.5.3).
Starting preprocessing of the model file …
ERROR: NK.mod: line 37, col 16: character unrecognized by lexer
I tried to look for special characters in the mod file, but I do not find it. Is anyone available to help?
When you open your file in a text editor, there are random slashes at the end of each line. There is also meta code at the beginning. None of this should be there.
dynare basic
Using 64-bit preprocessor
Starting Dynare (version 4.6.1).
Calling Dynare with arguments: none
Starting preprocessing of the model file …
ERROR: basic.mod: line 18, col 27: character unrecognized by lexer
Error using dynare (line 282)
Dynare: preprocessing failed
Th encoding of your file was not correct, as ^ and _ where not properly recognized.
Please, find attached a working version of your file. basic.mod (620 Bytes)
You are using the wrong hat. Your hat ˆ is UTF character 710 (https://asecuritysite.com/coding/asc2?val=512%2C768) while the correct hat ^ is ASCII character 94. In the same line of code, the hat before the (-1/sigma) is the correct one.