openGeeksLab / codenameone

Automatically exported from code.google.com/p/codenameone
0 stars 0 forks source link

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

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
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

Original issue reported on code.google.com by Stefan.A...@gmail.com on 17 Jan 2015 at 2:53

GoogleCodeExporter commented 8 years ago
    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();

Original comment by Stefan.A...@gmail.com on 18 Jan 2015 at 2:46

GoogleCodeExporter commented 8 years ago
This should be fixed now. Thanks.

Original comment by shai.almog on 19 Jan 2015 at 6:42

GoogleCodeExporter commented 8 years ago
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

Original comment by Stefan.A...@gmail.com on 20 Jan 2015 at 6:54