unicode or bug in android ?

The place to discuss anything and everything about running your LiveCode on Android

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
vedus
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 153
Joined: Tue Feb 26, 2013 9:23 am

unicode or bug in android ?

Post by vedus » Tue Mar 25, 2014 12:53 am

i have deploy the same app in ios and android,in the ios all the letters show up ok.(greek letters).
In android the greek letter (π) have disappear,but the capital letter (Π) is ok.
the problem exist in the "label fields",anyone know something about this?
is bug or i do again something wrong?
thx guys

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: unicode or bug in android ?

Post by Simon » Tue Mar 25, 2014 1:30 am

Hi vedus,
try this

Code: Select all

on mouseUp
   set the useUnicode to true
   set the unicodeText of field 1 to numToChar(960)
end mouseUp
Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

vedus
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 153
Joined: Tue Feb 26, 2013 9:23 am

Re: unicode or bug in android ?

Post by vedus » Tue Mar 25, 2014 2:44 pm

Simon wrote:Hi vedus,
try this

Code: Select all

on mouseUp
   set the useUnicode to true
   set the unicodeText of field 1 to numToChar(960)
end mouseUp
Simon
hi simon thank you,but that is no resolve the problem.
if i put the above code the label field contain only the letter (π) and the word disappear(replaced) something like bellow in the photo.
Screen Shot 2014-03-25 at 3.38.30 PM.png
here is the original and the missing letter.
Screen Shot 2014-03-25 at 3.41.49 PM.png
the problem exist only in the android,so i thing have to do with android platform,because in the ios is ok.
i know the solution with hidden fields and set the unicode to this fields,but here is many fields and all is on the greek language,and only one letter is missing :D
(update)
i have make the test with hidden field and the code bellow

Code: Select all

  put uniDecode(the unicodetext of fld "t01","UTF8") into Rtext
set the unicodeText of field "t1" to uniEncode (Rtext,"UTF8")
and i make the test in the simulator and my phone and the fonts that provide is only
Droid Sans
Droid Sans Mono
Droid serif
but still the letter is the same like the photo.
is possible to include font with unicode support for this platform?

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: unicode or bug in android ?

Post by Simon » Tue Mar 25, 2014 11:34 pm

Hi,
The Droid font does contain π.

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

vedus
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 153
Joined: Tue Feb 26, 2013 9:23 am

Re: unicode or bug in android ?

Post by vedus » Tue Mar 25, 2014 11:46 pm

Simon wrote:Hi,
The Droid font does contain π.

Simon
well the only solution i have find until now is to change the fld's with buttons and paste the text in the labels.
With this trick is working,but really i don't know why this behaviour from android platform.. :(

Post Reply