I have what I think is a strange problem (obviously my lack of understanding at the moment...).
On iOS the answer dialog can display foreign characters like umlauts etc e.g. ü, ä, ö. However, when I have language strings containing these characters in an array, they do not seem to display correctly. Strangely they do appear in the console log correctly so I know they're stored in the array ok.
I tested it by just inserting a straight
answer "Bitte wählen Sie eine Station."
which works ok.
But when I use my function as follows, it doesn't work. It displays the text but with the umlaut displayed as "√§".
i.e. "Bitte w√§hlen Sie eine Station."
function is:
Code: Select all
on smAnswer pMsg
-- display a message in correct current language
-- gLang is an array of message keys and texts for current language.
-- pMsg is the key for the text we want to extract.
put gLang[pMsg] into tMsg
if tMsg is empty then
smLog "Error: could not find translation into " & gSMPrefs["Lang"] & " for string[" & pMsg & "]"
answer pMsg
else
answer "Bitte wählen Sie eine Station." -- THIS works ok but next line not.
answer tMsg
end if
end smAnswer
cheers
Alan