IOS APP

26 views
Skip to first unread message

candid...@gmail.com

unread,
Sep 11, 2017, 5:18:51 PM9/11/17
to CodenameOne Discussions

Hello

I was developed an App that works fine in Android, but when I deploy in IOS I got the "Encoding Error". Any Ideas.

I implements https connection to a server, may be the error throwed because the certificate is no valid.

Best Regards Kandy

Shai Almog

unread,
Sep 12, 2017, 2:14:16 AM9/12/17
to CodenameOne Discussions
Hi,
there are several potential reasons. I suggest adding logging and possibly trying something like include source to try and track the issue to a specific area in the code.

candid...@gmail.com

unread,
Sep 12, 2017, 8:19:02 AM9/12/17
to CodenameOne Discussions
Thanks Shai

I found the error:

The problem was in a getResourceAsStream, I was loading a file encoded in UTF-8 but some characters was in another encoding, I was capturing the IOException but not a General Exception, so the app crashed. Is strange because in the simulator and in Android device working fine.

Best Regards Kandy

Shai Almog

unread,
Sep 13, 2017, 1:51:17 AM9/13/17
to CodenameOne Discussions
If you have access to this file and can submit a standalone test case to reproduce this in the issue tracker this would be interesting.
We try to replicate JVM behaviors but some nuances are hard to nail down.
Reply all
Reply to author
Forward
0 new messages