Software Archive
Read-only legacy content
17061 Discussions

Building cordova win8 app fails with norwegian display name

Anders_R_
Beginner
568 Views

Hi 

I am trying to build my app as a win 8 app but I get all kinds of errors. The latest one is that my name "Anders Retterås" which I also use as DISPLAYNAME when I build is causing the build to crash.

I could always change this not to use the "å" (\xe5) character but then I have to recreate my windows devcenter user....

Here is my log:

Creating a new cordova project with name "LagetMitt" and id "com.andersretterasno.andersretterasno.lagetmitt" at location "...\LagetMitt"
Using stock cordova hello-world application.
cordova library for "www" already exists. No need to download. Continuing.
Copying stock Cordova www assets into "...\LagetMitt\www"
cordova library for "windows8" already exists. No need to download. Continuing.
Checking if platform "windows8" passes minimum requirements...
Checking windows8 requirements...
Running ""C:\Windows\system32\config\systemprofile\.cordova\lib\windows8\cordova\3.5.0\windows8\bin\check_reqs"" (output to follow)
4.0.30319

Creating windows8 project...
Running command: C:\Windows\system32\config\systemprofile\.cordova\lib\windows8\cordova\3.5.0\windows8\bin\create.bat ...\LagetMitt\platforms\windows8 com.andersretterasno.andersretterasno.lagetmitt LagetMitt
Creating Cordova Windows 8 Project:
	App Name : LagetMitt
	Namespace : com.andersretterasno.andersretterasno.lagetmitt
	Path : ...\LagetMitt\platforms\windows8
Project created
Command finished with error code 0: C:\Windows\system32\config\systemprofile\.cordova\lib\windows8\cordova\3.5.0\windows8\bin\create.bat ...\LagetMitt\platforms\windows8,com.andersretterasno.andersretterasno.lagetmitt,LagetMitt
cordova library for "windows8" already exists. No need to download. Continuing.
Calling plugman.prepare for platform "windows8"
Preparing windows8 project
Processing configuration changes for plugins.
creating jsproj from project at : ...\LagetMitt\platforms\windows8\CordovaApp.jsproj
Iterating over installed plugins: []
Writing out cordova_plugins.js...
Calling plugman.fetch on plugin "...\pl.st.obhzwopw.dfr\com.phonegap.plugins.PushPlugin"
Copying plugin "...\pl.st.obhzwopw.dfr\com.phonegap.plugins.PushPlugin" => "...\LagetMitt\plugins\com.phonegap.plugins.PushPlugin"
Calling plugman.install on plugin "...\LagetMitt\plugins\com.phonegap.plugins.PushPlugin" for platform "windows8" with options "{"cli_variables":{}}"
Installing "com.phonegap.plugins.PushPlugin" for windows8
Install start for "com.phonegap.plugins.PushPlugin" on windows8.
Beginning processing of action stack for windows8 project...
Parsing windows8 project files...
creating jsproj from project at : ...\LagetMitt\platforms\windows8\CordovaApp.jsproj
Action stack processing complete.
Writing out windows8 project files...
Preparing windows8 project
Processing configuration changes for plugins.
creating jsproj from project at : ...\LagetMitt\platforms\windows8\CordovaApp.jsproj
Iterating over installed plugins: [ 'com.phonegap.plugins.PushPlugin' ]
Writing out cordova_plugins.js...
Install complete for com.phonegap.plugins.PushPlugin on windows8.
Calling plugman.fetch on plugin "...\pl.st.obhzwopw.dfr\org.apache.cordova.device"
Copying plugin "...\pl.st.obhzwopw.dfr\org.apache.cordova.device" => "...\LagetMitt\plugins\org.apache.cordova.device"
Calling plugman.install on plugin "...\LagetMitt\plugins\org.apache.cordova.device" for platform "windows8" with options "{"cli_variables":{}}"
Installing "org.apache.cordova.device" for windows8
Install start for "org.apache.cordova.device" on windows8.
Beginning processing of action stack for windows8 project...
Parsing windows8 project files...
creating jsproj from project at : ...\LagetMitt\platforms\windows8\CordovaApp.jsproj
Action stack processing complete.
Writing out windows8 project files...
Preparing windows8 project
Processing configuration changes for plugins.
creating jsproj from project at : ...\LagetMitt\platforms\windows8\CordovaApp.jsproj
Iterating over installed plugins: [ 'com.phonegap.plugins.PushPlugin',
  'org.apache.cordova.device' ]
Writing out cordova_plugins.js...
Install complete for org.apache.cordova.device on windows8.
Calling plugman.fetch on plugin "...\pl.st.obhzwopw.dfr\org.apache.cordova.dialogs"
Copying plugin "...\pl.st.obhzwopw.dfr\org.apache.cordova.dialogs" => "...\LagetMitt\plugins\org.apache.cordova.dialogs"
Calling plugman.install on plugin "...\LagetMitt\plugins\org.apache.cordova.dialogs" for platform "windows8" with options "{"cli_variables":{}}"
Installing "org.apache.cordova.dialogs" for windows8
Install start for "org.apache.cordova.dialogs" on windows8.
Beginning processing of action stack for windows8 project...
Parsing windows8 project files...
creating jsproj from project at : ...\LagetMitt\platforms\windows8\CordovaApp.jsproj
Action stack processing complete.
Writing out windows8 project files...
Preparing windows8 project
Processing configuration changes for plugins.
creating jsproj from project at : ...\LagetMitt\platforms\windows8\CordovaApp.jsproj
Iterating over installed plugins: [ 'com.phonegap.plugins.PushPlugin',
  'org.apache.cordova.device',
  'org.apache.cordova.dialogs' ]
Writing out cordova_plugins.js...
Install complete for org.apache.cordova.dialogs on windows8.
Calling plugman.fetch on plugin "...\pl.st.obhzwopw.dfr\org.apache.cordova.splashscreen"
Copying plugin "...\pl.st.obhzwopw.dfr\org.apache.cordova.splashscreen" => "...\LagetMitt\plugins\org.apache.cordova.splashscreen"
Calling plugman.install on plugin "...\LagetMitt\plugins\org.apache.cordova.splashscreen" for platform "windows8" with options "{"cli_variables":{}}"
Installing "org.apache.cordova.splashscreen" for windows8
Install start for "org.apache.cordova.splashscreen" on windows8.
Beginning processing of action stack for windows8 project...
Parsing windows8 project files...
creating jsproj from project at : ...\LagetMitt\platforms\windows8\CordovaApp.jsproj
Action stack processing complete.
Writing out windows8 project files...
Preparing windows8 project
Processing configuration changes for plugins.
creating jsproj from project at : ...\LagetMitt\platforms\windows8\CordovaApp.jsproj
Iterating over installed plugins: [ 'com.phonegap.plugins.PushPlugin',
  'org.apache.cordova.device',
  'org.apache.cordova.dialogs',
  'org.apache.cordova.splashscreen' ]
Writing out cordova_plugins.js...
Install complete for org.apache.cordova.splashscreen on windows8.
Calling plugman.fetch on plugin "...\pl.st.obhzwopw.dfr\org.apache.cordova.vibration"
Copying plugin "...\pl.st.obhzwopw.dfr\org.apache.cordova.vibration" => "...\LagetMitt\plugins\org.apache.cordova.vibration"
Calling plugman.install on plugin "...\LagetMitt\plugins\org.apache.cordova.vibration" for platform "windows8" with options "{"cli_variables":{}}"
Installing "org.apache.cordova.vibration" for windows8
Install start for "org.apache.cordova.vibration" on windows8.
Beginning processing of action stack for windows8 project...
Parsing windows8 project files...
creating jsproj from project at : ...\LagetMitt\platforms\windows8\CordovaApp.jsproj
Action stack processing complete.
Writing out windows8 project files...
Preparing windows8 project
Processing configuration changes for plugins.
creating jsproj from project at : ...\LagetMitt\platforms\windows8\CordovaApp.jsproj
Iterating over installed plugins: [ 'com.phonegap.plugins.PushPlugin',
  'org.apache.cordova.device',
  'org.apache.cordova.dialogs',
  'org.apache.cordova.splashscreen',
  'org.apache.cordova.vibration' ]
Writing out cordova_plugins.js...
Install complete for org.apache.cordova.vibration on windows8.
Calling plugman.fetch on plugin "...\pl.st.obhzwopw.dfr\org.apache.cordova.network-information"
Copying plugin "...\pl.st.obhzwopw.dfr\org.apache.cordova.network-information" => "...\LagetMitt\plugins\org.apache.cordova.network-information"
Calling plugman.install on plugin "...\LagetMitt\plugins\org.apache.cordova.network-information" for platform "windows8" with options "{"cli_variables":{}}"
Installing "org.apache.cordova.network-information" for windows8
Install start for "org.apache.cordova.network-information" on windows8.
Beginning processing of action stack for windows8 project...
Parsing windows8 project files...
creating jsproj from project at : ...\LagetMitt\platforms\windows8\CordovaApp.jsproj
Action stack processing complete.
Writing out windows8 project files...
Preparing windows8 project
Processing configuration changes for plugins.
creating jsproj from project at : ...\LagetMitt\platforms\windows8\CordovaApp.jsproj
Iterating over installed plugins: [ 'com.phonegap.plugins.PushPlugin',
  'org.apache.cordova.device',
  'org.apache.cordova.dialogs',
  'org.apache.cordova.splashscreen',
  'org.apache.cordova.vibration',
  'org.apache.cordova.network-information' ]
Writing out cordova_plugins.js...
Install complete for org.apache.cordova.network-information on windows8.
cordova library for "windows8" already exists. No need to download. Continuing.
Generating config.xml from defaults for platform "windows8"
Calling plugman.prepare for platform "windows8"
Preparing windows8 project
Processing configuration changes for plugins.
creating jsproj from project at : ...\LagetMitt\platforms\windows8\CordovaApp.jsproj
Iterating over installed plugins: [ 'com.phonegap.plugins.PushPlugin',
  'org.apache.cordova.device',
  'org.apache.cordova.dialogs',
  'org.apache.cordova.splashscreen',
  'org.apache.cordova.vibration',
  'org.apache.cordova.network-information' ]
Writing out cordova_plugins.js...
Running command: ...\LagetMitt\hooks\after_prepare\cordova_3.5.cmd ...\LagetMitt

...\LagetMitt>python .\hooks\after_prepare\python.code\cordova_3.5.py ...\LagetMitt 
NO stdout encoding...
NO stdout encoding after..
************* Processing the main config.xml file (after_prepare)  *****************
Platforms = windows8
Platform = [windows8]
2 arguments passed.
App Directory = [...\LagetMitt]
Current Directory = [.\hooks\after_prepare\python.code\cordova_3.5.py]
************* Processing the main config.xml file (after_prepare)  *****************
App Directory = [...\LagetMitt]
Will process and update the following config files:
    Config.xml = [...\LagetMitt\config.xml]
Namespaces:
    prefix/uri ''/'http://www.w3.org/ns/widgets'
    prefix/uri 'intelxdk'/'http://xdk.intel.com/ns/v1'
getting into a windows manifest
Windows8 Manifest Namespaces:
    prefix/uri ''/'http://schemas.microsoft.com/appx/2010/manifest'
Processing windows configuration items.
Name of the app is [LagetMitt]
    Deleting [...\LagetMitt\platforms\windows8\images\logo.png]
    Deleting [...\LagetMitt\platforms\windows8\images\smalllogo.png]
    Deleting [...\LagetMitt\platforms\windows8\images\splashscreen.png]
    Deleting [...\LagetMitt\platforms\windows8\images\storelogo.png]
Searching for images in [...\LagetMitt\hooks\Images.windows8.3.5\*.png]
    Copying [...\LagetMitt\platforms\windows8\images\logo.png]
    Copying [...\LagetMitt\platforms\windows8\images\logo.scale-100.png]
    Copying [...\LagetMitt\platforms\windows8\images\smalllogo.png]
    Copying [...\LagetMitt\platforms\windows8\images\smalllogo.scale-100.png]
    Copying [...\LagetMitt\platforms\windows8\images\SplashScreen.png]
    Copying [...\LagetMitt\platforms\windows8\images\SplashScreen.scale-100.png]
    Copying [...\LagetMitt\platforms\windows8\images\StoreLogo.png]
    Copying [...\LagetMitt\platforms\windows8\images\StoreLogo.scale-100 - Copy.png]
Processing preference windows publisher id
Processing a preference [windows-publisher-id]
Processing preference windows-publisher-id
Processing preference windows publisher display name
Processing a preference [windows-publisher-display-name]
Processing preference windows-publisher-display-name
Traceback (most recent call last):
  File ".\hooks\after_prepare\python.code\cordova_3.5.py", line 55, in <module>
    exit(Settings.CordovaSettings.ProcessCordovaSettings(newBuildPaths));
  File "...\LagetMitt\hooks\after_prepare\python.code\Settings\CordovaSettings.py", line 1681, in ProcessCordovaSettings
    if (ProcessConfig(mainConfig, configPathSettings.appDirectory) == False):
  File "...\LagetMitt\hooks\after_prepare\python.code\Settings\CordovaSettings.py", line 1581, in ProcessConfig
    ProcessWindowsSettings(mainConfig, nameValue);
  File "...\LagetMitt\hooks\after_prepare\python.code\Settings\CordovaSettings.py", line 1523, in ProcessWindowsSettings
    mainConfig.UpdatePreference("windows-publisher-display-name", newVal, nameValue);
  File "...\LagetMitt\hooks\after_prepare\python.code\Settings\CordovaSettings.py", line 1419, in UpdatePreference
    newProc.UpdatePreference(preferenceName, preferenceValue, nameValue);
  File "...\LagetMitt\hooks\after_prepare\python.code\Settings\CordovaSettings.py", line 877, in UpdatePreference
    self.windowsManifest.UpdateProperty("PublisherDisplayName", preferenceValue);
  File "...\LagetMitt\hooks\after_prepare\python.code\Settings\CordovaSettings.py", line 659, in UpdateProperty
    messageLog.writeline('Set "' + elementName + '" to "' + preferenceValue + '".');
  File "...\LagetMitt\hooks\after_prepare\python.code\Settings\CordovaSettings.py", line 244, in writeline
    self.write(message + os.linesep);
  File "...\LagetMitt\hooks\after_prepare\python.code\Settings\CordovaSettings.py", line 240, in write
    fd.write(message)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe5' in position 44: ordinal not in range(128)
Command finished with error code 1: ...\LagetMitt\hooks\after_prepare\cordova_3.5.cmd ...\LagetMitt
Hook failed with error code 1: ...\LagetMitt\hooks\after_prepare\cordova_3.5.cmd

Could you please have a look at my issue?
 

I have also encountered the four-part version number issue: The build script errors out saying I need a four-part build number eventhough I have given number 1.5.06.1 as my build number. At the moment I do not get this last error but I might get it back if I get the DISPLAYNAME to work again.

I am really looking forward to your response!

Regards,

Anders

0 Kudos
3 Replies
Swati_S_Intel1
Employee
568 Views

Your build is failing because of the special character å in your display name. If you change it to normal character it should work. I'll check with build engineers if we will be able to support special character in display name. We support special character many other places so it should be possible. 

 

Swati

0 Kudos
John_H_Intel2
Employee
568 Views

About the 4 part version number issue. The Cordova build apparently dont like the leading 0's.

Change 1.5.06.1   to    1.5.6.1 and that error should go away. 

0 Kudos
Eric_H_Intel
Employee
568 Views

The issue is with the publisher display name and not the application name.

I'm looking into the problem.

Eric

 

0 Kudos
Reply