Hi,
Having a baffling problem with accented characters--no, actually, with just one character: ñ . In other words, 'mañana' never comes. In my web app, this character appears numerous times, along with many other accented characters. In the IDE, it's perfect; when I save as a standalone, all the other accented characters come along, except this one. I've tried a variety of fonts and I've looked into setting the text encoding, etc., but nothing good happens. The issue is only in fields containing set text (not in user-generated content). In the screen grab below you can see the issue: at left is a trial page with "mañana" in five different fonts, on the right is how they are rendered in the standalone HTML5 version.
What do I need to do?
Thanks,
LPB
Back to accented characters & HTML5
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- Livecode Opensource Backer
- Posts: 9359
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: Back to accented characters & HTML5
. . . Um.'mañana' never comes
Well, what can I say . . . I made a stack with 3 buttons:
"PUT":
Code: Select all
on mouseUp
put empty into fld "ff"
wait 30 ticks
put "'mañana' never comes" into fld "ff"
end mouseUp
Code: Select all
on mouseUP
put empty into fld "ff"
wait 30 ticks
set the HTMLtext of fld "ff" to "'mañana' never comes"
end mouseUP
Code: Select all
on mouseUP
put empty into fld "ff"
wait 30 ticks
put "'ma" & numToCodePoint(241) & "ana' never comes" into fld "ff"
end mouseUP
me a blank field in ALL cases.
I have a feeling I'm doing even worse than you are.
-
- Posts: 17
- Joined: Thu Mar 26, 2020 8:23 pm
Re: Back to accented characters & HTML5
Thank you for this excellent follow up. It helps to have some confirmation, even if it doesn't bring a solution yet. I'll keep asking!
-
- VIP Livecode Opensource Backer
- Posts: 7228
- Joined: Sat Apr 08, 2006 8:31 pm
- Location: Minneapolis MN
- Contact:
Re: Back to accented characters & HTML5
I would have thought that (system) would work. What happens if you set the font to Roboto? In the IDE you'll get a default font but on android it will use Roboto which is the default font there.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
-
- Posts: 17
- Joined: Thu Mar 26, 2020 8:23 pm
Re: Back to accented characters & HTML5
Thank you, Jacque.
That's worth a try. I also stumbled across an older bug report on a similar issue that was resolved by pointing out that the 'fixed line height' cannot be left as 'false'. I will try that later today, to see if it takes care of it.
That's worth a try. I also stumbled across an older bug report on a similar issue that was resolved by pointing out that the 'fixed line height' cannot be left as 'false'. I will try that later today, to see if it takes care of it.