I have read Devin Asay's article at /spaces/lessons/buckets/1412/lessons/20441-Unicode on typing and displaying Unicode in text entry fields, and I can do everything he describes. Thanks, Devin!
He never mentions storing Unicode text in variables and displaying it from variables, but that works, too. It should be added to the write-up.
What I don't understand is the scope of the statement "et the useUnicode to true."
Does it affect only the command that follows it, or the rest of the handler, or the current script, or the stack? Can I declare it after opening the main stack, and then use numToChar() and charToNum() anywhere in the application?
Grateful for any tips,
Slava
scope of "set useUnicode"
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Re: scope of "set useUnicode"
From the dictionary entry of "useUnicode":
Since the useUnicode is a local property, its value is reset to false when the current handler finishes executing. It retains its value only for the current handler, and setting it in one handler does not affect its value in other handlers it calls.
Various teststacks and stuff:
http://bjoernke.com
Chat with other RunRev developers:
chat.freenode.net:6666 #livecode
http://bjoernke.com
Chat with other RunRev developers:
chat.freenode.net:6666 #livecode
Re: scope of "set useUnicode"
Hi Slava,
from the dictionary:
Kind regards
Bernd
Edit:
Too late, Björnke already answered it.
from the dictionary:
This means you have to set useUnicode explicitly in every handler where you want to use it. It is not a global property. Once it is set inside a handler it is in effect for the whole handler. You only have to set it once in a handler.If you do a custom function that you call from your main handler to do e.g. your conversion numtochar/charToNum you would have to set the useUnicode to true in that function.Since the useUnicode is a local property, its value is reset to false when the current handler finishes executing. It retains its value only for the current handler, and setting it in one handler does not affect its value in other handlers it calls.
Kind regards
Bernd
Edit:
Too late, Björnke already answered it.
Re: scope of "set useUnicode"
but your answer is better 

Various teststacks and stuff:
http://bjoernke.com
Chat with other RunRev developers:
chat.freenode.net:6666 #livecode
http://bjoernke.com
Chat with other RunRev developers:
chat.freenode.net:6666 #livecode