You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Vladimir Kotikov (JIRA)" <ji...@apache.org> on 2016/05/17 14:34:13 UTC
[jira] [Comment Edited] (CB-11241) File encoding test fails with
UTF-8 file encoding error on windows store submission
[ https://issues.apache.org/jira/browse/CB-11241?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15286723#comment-15286723 ]
Vladimir Kotikov edited comment on CB-11241 at 5/17/16 2:34 PM:
----------------------------------------------------------------
[~mobidev3], I can't reproduce this. Using the steps below i'm getting an app that passes File encoding test from Windows Cert Kit:
{noformat}
cordova create foo && cd foo
cordova platform add windows // Windows@4.3.2 is installing by default
cordova build windows
{noformat}
{noformat}
d:\PROJECTS\Temp\foo (master -> origin)
λ file platforms/windows/www/*.js
platforms/windows/www/cordova.js: UTF-8 Unicode (with BOM) text
platforms/windows/www/cordova_plugins.js: UTF-8 Unicode (with BOM) text
d:\PROJECTS\Temp\foo (master -> origin)
λ file platforms/windows/www/**/*.js
platforms/windows/www/cordova-js-src/exec.js: UTF-8 Unicode (with BOM) text
platforms/windows/www/cordova-js-src/platform.js: UTF-8 Unicode (with BOM) text
platforms/windows/www/js/index.js: UTF-8 Unicode (with BOM) text
{noformat}
Could you please provide steps to reproduce the problem? Also, which version of cordova-windows platform are you using?
was (Author: vladimir.kotikov):
[~mobidev3], I can't reproduce this. Using the steps below i'm getting an app that passes File encoding test from Windows Cert Kit:
cordova create foo && cd foo
cordova platform add windows // Windows@4.3.2 is installing by default
cordova build windows
{noformat}
d:\PROJECTS\Temp\foo (master -> origin)
λ file platforms/windows/www/*.js
platforms/windows/www/cordova.js: UTF-8 Unicode (with BOM) text
platforms/windows/www/cordova_plugins.js: UTF-8 Unicode (with BOM) text
d:\PROJECTS\Temp\foo (master -> origin)
λ file platforms/windows/www/**/*.js
platforms/windows/www/cordova-js-src/exec.js: UTF-8 Unicode (with BOM) text
platforms/windows/www/cordova-js-src/platform.js: UTF-8 Unicode (with BOM) text
platforms/windows/www/js/index.js: UTF-8 Unicode (with BOM) text
{noformat}
Could you please provide steps to reproduce the problem? Also, which version of cordova-windows platform are you using?
> File encoding test fails with UTF-8 file encoding error on windows store submission
> -----------------------------------------------------------------------------------
>
> Key: CB-11241
> URL: https://issues.apache.org/jira/browse/CB-11241
> Project: Apache Cordova
> Issue Type: Bug
> Components: CordovaLib, Windows
> Affects Versions: 6.1.1
> Reporter: Michael Schmidt
> Labels: cannot-reproduce, triaged, wfc
>
> File encoding test
> ```
> FAILED
> UTF-8 file encoding
> Error Found: The UTF-8 file encoding test detected the following errors:
> File www\cordova_plugins.js is not properly UTF-8 encoded. Re-save the file as UTF-8 (including Byte Order Mark).
> File www\cordova-js-src\exec.js is not properly UTF-8 encoded. Re-save the file as UTF-8 (including Byte Order Mark).
> File www\cordova-js-src\platform.js is not properly UTF-8 encoded. Re-save the file as UTF-8 (including Byte Order Mark).
> File www\js\app.js is not properly UTF-8 encoded. Re-save the file as UTF-8 (including Byte Order Mark).
> File www\js\libs.js is not properly UTF-8 encoded. Re-save the file as UTF-8 (including Byte Order Mark).
> File www\plugins\cordova-plugin-console\www\console-via-logger.js is not properly UTF-8 encoded. Re-save the file as UTF-8 (including Byte Order Mark).
> ...
> Impact if not fixed: HTML, CSS, and JavaScript files must be encoded in UTF-8 form with a corresponding byte-order mark (BOM) in order to benefit from bytecode caching and to avoid other runtime error conditions.
> How to fix: Open the affected file, and select "Save As..." option from the File menu in Visual Studio. Select the drop-down control next to the Save button and select "Save with Encoding..." option. From the Advanced save options dialog, choose the "Unicode (UTF-8 with signature)" option and click the OK button.
> ````
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org