Hi,
I am using datepicker plugin in jQuery and in that i am using france specific locale, when i ran jscoverage for this file i am getting a message as SyntaxError: illegal character. jscoverage wont support locale??
Thanks
Subba rao
JSCoverage for the locale specific js files
-
- Posts: 120
- Joined: 2008-10-11 6:52 pm
Re: JSCoverage for the locale specific js files
Have you tried using the --encoding option?
Re: JSCoverage for the locale specific js files
Hi,
I tried it but it is asking for the --encoding=ENCODING, what we need mention in ENCODING part, i mention the path for the locale folder where i had all the locale specifics. It is giving an error as it is not supproting.
C:\Documents and Settings\subbu\Desktop\jscoverage-0.4>jscoverage --encoding=C:\
js\datepicker\locale\ui.datepicker-fr.js C:\radmin C:\jscoverage
jscoverage: encoding C:\js\datepicker\locale\ui
.datepicker-fr.js not supported
Regds,
Subba rao
I tried it but it is asking for the --encoding=ENCODING, what we need mention in ENCODING part, i mention the path for the locale folder where i had all the locale specifics. It is giving an error as it is not supproting.
C:\Documents and Settings\subbu\Desktop\jscoverage-0.4>jscoverage --encoding=C:\
js\datepicker\locale\ui.datepicker-fr.js C:\radmin C:\jscoverage
jscoverage: encoding C:\js\datepicker\locale\ui
.datepicker-fr.js not supported
Regds,
Subba rao
-
- Posts: 120
- Joined: 2008-10-11 6:52 pm
Re: JSCoverage for the locale specific js files
You need to specify the character encoding being used by your files. For example, --encoding=UTF-8.
Re: JSCoverage for the locale specific js files
Hi,
I tried in that way also, but it is giving error when it is converting datepickercontrol.js file, you can download it form http://plugins.jquery.com/project/datepick.
Thanks
Subba Rao
I tried in that way also, but it is giving error when it is converting datepickercontrol.js file, you can download it form http://plugins.jquery.com/project/datepick.
Thanks
Subba Rao
-
- Posts: 120
- Joined: 2008-10-11 6:52 pm
Re: JSCoverage for the locale specific js files
I couldn't find the file "datepickercontrol.js" you mentioned, but it looks like there are some issues with the package:
- The file jquery.datepick.min.js contains syntax errors.
- The package mixes different character encodings (UTF-8, ISO-8859-1). JSCoverage currently cannot handle this.