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 » 2010-04-21 9:44 pm

Fixed the problem... You only support ASCI

Ed
Posts: 120
Joined: 2008-10-11 6:52 pm

Re: SyntaxError: illegal character

Post by Ed » 2010-04-21 10:04 pm

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 » 2010-04-21 10:08 pm

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 » 2010-04-21 10:24 pm

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

Post Reply