Euro symbol on Android devices

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

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Mag
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 802
Joined: Fri Nov 16, 2012 10:51 pm

Euro symbol on Android devices

Post by Mag » Tue May 21, 2013 3:54 pm

Hi all,

I'm trying to put the euro symbol in a field but it seems impossible, under Android I always get a strange character. I did several tests but them failed even with the command set the html ... does anyone know if it is possible?

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: Euro symbol on Android devices

Post by Mark » Tue May 21, 2013 8:24 pm

Hi,

On both the Dutch and English (UK) Android keyboards, I can choose the numeric keyboard, type alt and type €.

Kind regards,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

Mag
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 802
Joined: Fri Nov 16, 2012 10:51 pm

Re: Euro symbol on Android devices

Post by Mag » Tue May 21, 2013 8:42 pm

This is great, unfortunately if I put the "€" in a field programmatically or in the field contents via inspector, then on Android I cant see it...

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: Euro symbol on Android devices

Post by Mark » Tue May 21, 2013 9:10 pm

Hi,

That must be a font problem. Try setting the font to Droid Serif or Droid Sans or include a font with your standalone.

Kind regards,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

Mag
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 802
Joined: Fri Nov 16, 2012 10:51 pm

Re: Euro symbol on Android devices

Post by Mag » Tue May 21, 2013 10:27 pm

Thank you Mark. I will try.

PS
The problem occurs also in ask dialogs when I put "€" as defaultResponse

Mag
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 802
Joined: Fri Nov 16, 2012 10:51 pm

Re: Euro symbol on Android devices

Post by Mag » Wed May 22, 2013 11:22 pm

Update, the only way to avoid this problem is to avoid to use the € symbol under Android. Whether anyone has solved this problem please post info here. Thank you!

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

Re: Euro symbol on Android devices

Post by Simon » Wed May 22, 2013 11:38 pm

Not sure if it works in a native text field but can you:
set char 1 of fld 1 to image "myEuro"?

Sure it would be a pain 'cause I'm guessing ₤ or ¥ don't work either.

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

Mag
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 802
Joined: Fri Nov 16, 2012 10:51 pm

Re: Euro symbol on Android devices

Post by Mag » Thu May 23, 2013 12:56 am

Simon wrote:Not sure if it works in a native text field but can you:
set char 1 of fld 1 to image "myEuro"?

Sure it would be a pain 'cause I'm guessing ₤ or ¥ don't work either.

Simon
Thank you, I will try.

¥, £ and $ work great. The problem is only with €.

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

Re: Euro symbol on Android devices

Post by Simon » Thu May 23, 2013 3:11 am

It's actually "imagesource"

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

Mag
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 802
Joined: Fri Nov 16, 2012 10:51 pm

Re: Euro symbol on Android devices

Post by Mag » Thu May 23, 2013 9:43 am

Mhh... the statement don't works

Code: Select all

set char 1 of fld "Label Field" to imagesource "myEuro"
I post the stack
Last edited by Mag on Thu May 23, 2013 9:51 am, edited 1 time in total.

Thierry
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 875
Joined: Wed Nov 22, 2006 3:42 pm

Re: Euro symbol on Android devices

Post by Thierry » Thu May 23, 2013 9:49 am

Mag wrote:Mhh... the statement don't works

Code: Select all

set char 1 of fld "Label Field" to imagesource "myEuro"
I post the stack

Umm, maybe better to check imagesource in the dictionnary which says:

Syntax:
set the imageSource of character to {imageID |imageName |imageURL |empty}

Examples:
set the imageSource of char 1 of line 2 of field "This" to 2533
set the imageSource of char thisChar of field 1 to "Arrow"
set the imageSource of last char of me to "binfile:My Image"


Thierry
!
SUNNY-TDZ.COM doesn't belong to me since 2021.
To contact me, use the Private messages. Merci.
!

Mag
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 802
Joined: Fri Nov 16, 2012 10:51 pm

Re: Euro symbol on Android devices

Post by Mag » Thu May 23, 2013 9:56 am

OK, thanks Thierry, now it work.

PS
With all the problems that this kind of solution has... :-)

Sorry can't post the stack. After the site upgrade can't access to any advanced feature of the forum as emoticons buttons, buttons on edit post (eg Code, Quote), email notifications on new replays etc.

Post Reply