[ALOY-1692] Unable use unicode characters in config.json
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | n/a |
| Status | Open |
| Resolution | Unresolved |
| Affected Version/s | n/a |
| Fix Version/s | n/a |
| Components | n/a |
| Labels | config.json, engTriage, unicode |
| Reporter | Jose Enrique |
| Assignee | Unknown |
| Created | 2018-01-25T11:41:17.000+0000 |
| Updated | 2019-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
| File | Date | Size |
|---|---|---|
| app-test-unicode.zip | 2018-02-14T09:42:40.000+0000 | 9298343 |
| app-test-unicode.zip | 2018-01-25T11:33:12.000+0000 | 9266761 |
| Captura de pantalla 2018-01-25 a las 12.27.54.png | 2018-01-25T11:28:40.000+0000 | 31166 |
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.
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
Still happens with the latest version, 7.0.1.GA
Still happens with the latest version, 7.0.2.GA