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.
Need help:About charset,encoding and page display
-
- Posts: 120
- Joined: 2008-10-11 6:52 pm
Re: Need help:About charset,encoding and page display
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.
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 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 ...".
-
- Posts: 3
- Joined: 2012-03-28 11:08 am
Re: Need help:About charset,encoding and page display
Thanks for your suggestion. It seems the error exists in the file encoding.