codenameone / CodenameOne

Cross-platform framework for building truly native mobile apps with Java or Kotlin. Write Once Run Anywhere support for iOS, Android, Desktop & Web.
https://www.codenameone.com/
Other
1.71k stars 409 forks source link

German Umlauts by string literal constructor dont work in the new VM #1292

Closed codenameone closed 9 years ago

codenameone commented 9 years ago

Original issue 1293 created by codenameone on 2015-01-17T14:53:41.000Z:

Under IOS with the new VM a Label with German Umlauts does not work anymore. With the old one its ok.

This code: Form formIT = new Form("Investigating Troubles"); formIT.setLayout(new FlowLayout()); final Label label = new Label("ÄÖÜäöüß"); formIT.addComponent(label); formIT.show();

... displays ÄÖÜäöüß with the old VM on the iPhone; with the new VM ist displays lots of backslashes

codenameone commented 9 years ago

Comment #1 originally posted by codenameone on 2015-01-18T14:46:01.000Z:

Form formIT = new Form("Investigating Troubles");
    formIT.setLayout(new FlowLayout());
    final Label label = new Label("\u00c4\u00d6\u00dc\u00e4\u00f6\u00fc\u00df");
    formIT.addComponent(label);
    formIT.show();
codenameone commented 9 years ago

Comment #2 originally posted by codenameone on 2015-01-19T06:42:58.000Z:

This should be fixed now. Thanks.

codenameone commented 9 years ago

Comment #3 originally posted by codenameone on 2015-01-20T06:54:06.000Z:

That works. However if writing such special characters using the Storage class and reading them back the string is garbled (converting String to byte array and vice versa without specifying a character set). I assume that is the same as https://code.google.com/p/codenameone/issues/detail?id=1291