Page 1 of 1

NumToChar - charToNum for UTF8

Posted: Fri Mar 28, 2014 9:21 am
by atout66
Hi to all,

I follow my topic "encoding a var versus UTF8" which you can find here: http://forums.runrev.com/viewtopic.php?f=7&t=19732

My question:
Is there a function similar to <numToChar> and <charToNum> (for ASCII values) for unicode characters ?
Something like numToCharUTF8() and charToNumUTF8()... or an array of UTF8 characters in which to look ?

Thanks in advance.

Re: NumToChar - charToNum for UTF8

Posted: Fri Mar 28, 2014 9:53 am
by bn
Hi atout,

I am not of much help here but I would like to point you to these websites

http://livecode.byu.edu/indexgeneric.php

http://livecode.byu.edu/unicode/encoding.php

http://livecode.byu.edu/unicode/unicodeInRev.php

They give you some introduction to unicode and LiveCode in its present versions

Starting with Livecode 7 (a very early beta is out) this will hopefully all be easier.

Kind regards
Bernd

Re: NumToChar - charToNum for UTF8

Posted: Fri Mar 28, 2014 4:35 pm
by AZSun
Hi, I think the tutorial in my unicode post addresses your question. http://forums.runrev.com/viewtopic.php?f=7&t=16948

It does not look like step #3 has been updated yet in the tutorial. The correct code was given to me via e-mail from tech support and I posted it in the thread. Then everything worked fine.

Re: NumToChar - charToNum for UTF8

Posted: Fri Mar 28, 2014 9:01 pm
by atout66
Thanks to all of you. I follow your links to see...

After reading, I found them very, very helpfull.
Specially that one: http://livecode.byu.edu/unicode/unicodeInRev.php
and the tutorial also... :wink: