JSCoverage
code coverage for JavaScript

Bug #18 - JScoverage can not handle UTF-8 encoded file

Submitted by: Yongmei
Date submitted: 2009-09-28 09:26:42 UTC
Status: Closed
When i used the js coverage tool to do instrument, and there is an error like:
-----------------------------------
parse error in file js/SrApi.js
-----------------------------------


And i found the error is due to the encode of that file. Check the code of that 
file, it begins as:

0000000: efbb bf2f 2f0d 0a2f 2f20 2043 6f70 7972  ...//..//  Copyr


and "efbb bf" at the start indicates that it is UTF-8 encoding.
Submitted by: Ed
Date submitted: 2009-09-28 17:19:37 UTC
Have you tried using the --encoding option?
Submitted by: Ed
Date submitted: 2010-04-26 01:40:03 UTC
As I believe this is handled correctly with --encoding=UTF-8, I am closing this
bug.  If there are any further problems please submit a new bug.

Add a comment

Your name:
Your email address (optional - will never be displayed):
Comment:
Attachment (optional - maximum 64 KiB):
Copyright © 2008 Silicon Forks siliconforks.com
siliconforks@siliconforks.com