SyntaxError: illegal character

Questions, problems, suggestions, bug reports, and so on.
Post Reply
rlange
Posts: 2
Joined: 2010-04-21 9:40 pm

SyntaxError: illegal character

Post by rlange »

Fixed the problem... You only support ASCI
Ed
Posts: 120
Joined: 2008-10-11 6:52 pm

Re: SyntaxError: illegal character

Post by Ed »

I'm not sure what the problem was, but have you tried using the --encoding option?
rlange
Posts: 2
Joined: 2010-04-21 9:40 pm

Re: SyntaxError: illegal character

Post by rlange »

Thanks for the quick reply. That would have probably solved the problem, except our legacy code was in UTF-8 and our recent code was in ASCII. So, I had to choose a side. JSCovereage was the first one to notice the encoding issue :)
Ed
Posts: 120
Joined: 2008-10-11 6:52 pm

Re: SyntaxError: illegal character

Post by Ed »

ASCII is a subset of UTF-8, so specifying --encoding=UTF-8 should work for both types of files.
Post Reply