Question marks instead of characters

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
itaypincas
Posts: 3
Joined: Mon Jul 22, 2019 12:43 pm

Question marks instead of characters

Post by itaypincas » Mon Jul 22, 2019 12:50 pm

Hi,

My LiveCode app consists of labels with texts in the Hebrew language.
I am using certain fonts that I have imported into my stack.

However, when I run the app, all Hebrew characters turn into question marks except for when I use the Ariel font.

Would love to get some help with this!
Thanks in advance.

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10055
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Question marks instead of characters

Post by FourthWorld » Mon Jul 22, 2019 6:54 pm

It sounds like the Unicode isn't being preserved in the read. Can you share the relevant code you're using to read the file and display its contents?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10341
Joined: Wed May 06, 2009 2:28 pm

Re: Question marks instead of characters

Post by dunbarx » Mon Jul 22, 2019 7:21 pm

Does it work in the stack, but not in the standalone?

Craig

itaypincas
Posts: 3
Joined: Mon Jul 22, 2019 12:43 pm

Re: Question marks instead of characters

Post by itaypincas » Sun Jul 28, 2019 2:03 pm

dunbarx wrote:
Mon Jul 22, 2019 7:21 pm
Does it work in the stack, but not in the standalone?

Craig
It does work in the stack while it doesn't in the standalone app runned on Android.

itaypincas
Posts: 3
Joined: Mon Jul 22, 2019 12:43 pm

Re: Question marks instead of characters

Post by itaypincas » Sun Jul 28, 2019 2:05 pm

FourthWorld wrote:
Mon Jul 22, 2019 6:54 pm
It sounds like the Unicode isn't being preserved in the read. Can you share the relevant code you're using to read the file and display its contents?
I am not using any code to read the file. I am just choosing a random font that supports Hebrew, and via the Property Inspector I set some labels and fields to this font.

SparkOut
Posts: 2949
Joined: Sun Sep 23, 2007 4:58 pm

Re: Question marks instead of characters

Post by SparkOut » Sun Jul 28, 2019 4:46 pm

How are you importing the font files to the Android standalone? You need to add them via the copy files tab in the standalone settings. Try to "answer the fontNames" in the standalone so that you can see the fonts have been imported correctly and are available for use by the app.

Post Reply