Need help:About charset,encoding and page display

Questions, problems, suggestions, bug reports, and so on.
Post Reply
ask
Posts: 3
Joined: 2012-03-28 11:08 am

Need help:About charset,encoding and page display

Post by ask »

As to unfamiliar with JSCoverage, need expert suggestions.

After instrumenting source code of page in charset "EUC-JP" with the command like "jscoverage /SOURCE-DIR /DESTINATION-DIR",
Japanese characters in .JS files are not displayed in proper form and unreadable.

However, try to apply the command as the following: "jscoverage --encoding=EUC-JP /SOURCE-DIR /DESTINATION-DIR",
there are compiling errors indicated, like "jscoverage: error decoding EUC-JP in file ...".

Are there any methods to deal with the problem of Japanese character encoding for jscoverage instrument?

Expecting a reply.Thanks.
Ed
Posts: 120
Joined: 2008-10-11 6:52 pm

Re: Need help:About charset,encoding and page display

Post by Ed »

Note that the --encoding option has really only been tested with UTF-8 and ISO-8859-1; there may be bugs handling other character sets, although I believe EUC-JP should work.
ask wrote:However, try to apply the command as the following: "jscoverage --encoding=EUC-JP /SOURCE-DIR /DESTINATION-DIR",
there are compiling errors indicated, like "jscoverage: error decoding EUC-JP in file ...".
It sounds like the .js file mentioned in the error message is not using the EUC-JP encoding ... are you sure that the .js file is really EUC-JP?
ask
Posts: 3
Joined: 2012-03-28 11:08 am

Re: Need help:About charset,encoding and page display

Post by ask »

Thanks for your suggestion. It seems the error exists in the file encoding.
Post Reply