Titanium JIRA Archive
Alloy (ALOY)

[ALOY-1692] Unable use unicode characters in config.json

GitHub Issuen/a
TypeBug
Priorityn/a
StatusOpen
ResolutionUnresolved
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsconfig.json, engTriage, unicode
ReporterJose Enrique
AssigneeUnknown
Created2018-01-25T11:41:17.000+0000
Updated2019-06-20T22:07:52.000+0000

Description

When using a unicode character in the config.json this is scaped when compiled and in the label shows \E and not the character itself. config.json in the global section:
"icon": {
  "bus":"\uE530"
}
When open the compiled version of CFG.js it shows like:
module.exports={"dependencies":{},"icon":{"bus":"\\uE530"}};
And using Alloy.CFG.icon.bus in the app result undesired apparence. Changing "\ \uE530" with "\uE530" the compiled version of the file CFG.js with liveview active works as expected.

Attachments

FileDateSize
app-test-unicode.zip2018-02-14T09:42:40.000+00009298343
app-test-unicode.zip2018-01-25T11:33:12.000+00009266761
Captura de pantalla 2018-01-25 a las 12.27.54.png2018-01-25T11:28:40.000+000031166

Comments

  1. Mostafizur Rahman 2018-01-30

    Hello [~jogios] , Thanks for sharing with us. Can you please using latest SDK *7.0.1.GA*? If the issue occurs, provide a full sample test code that regenerates the issue. Better to provide a sample app as an attachment here. We will test the issue in our environment. Also, provide your detail environment information . Thanks.
  2. Jose Enrique 2018-01-30

    I have already added an example, if you notice there is a zip file named app-test-unicode.zip. I'm going to try the latest version
  3. Jose Enrique 2018-01-30

    Still happens with the latest version, 7.0.1.GA
  4. Jose Enrique 2018-02-14

    Still happens with the latest version, 7.0.2.GA

JSON Source