Page 1 of 1

unicode or bug in android ?

Posted: Tue Mar 25, 2014 12:53 am
by vedus
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

Re: unicode or bug in android ?

Posted: Tue Mar 25, 2014 1:30 am
by Simon
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

Re: unicode or bug in android ?

Posted: Tue Mar 25, 2014 2:44 pm
by vedus
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?

Re: unicode or bug in android ?

Posted: Tue Mar 25, 2014 11:34 pm
by Simon
Hi,
The Droid font does contain π.

Simon

Re: unicode or bug in android ?

Posted: Tue Mar 25, 2014 11:46 pm
by vedus
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.. :(