Today I tried to build a tornado application. The developing environment is windows. When I tried to start debugging, I got "invalid character in identifier" on
The problem is, under windows, utf-8 file contains BOM. The config parser reads the BOM but not recognized it.
Remove the BOM from the config file solves the problem.