Unicode woes

Trevor DeVore lists at mangomultimedia.com
Fri May 6 23:56:12 EDT 2005


On May 6, 2005, at 8:28 PM, Thomas McGrath III wrote:

> Trevor,
>
> Thanks for the reply, are you saying that I can:
> put field "unicodestuff" into gVariable
>
> and then:
> set the unicodetext of field "field" to gVariable
>
> P.S. I am working with mixed fields that have both English and  
> Asian languages in them.

Almost.  The first line should be:

put the unicodeText of fld "unicodeStuff" into gVariable

then

set the unicodeText of field "field" to gVariable

Once you put unicodeText of a field into a variable then you can  
assign it to the unicodeText of another field.  The variable just  
holds the data that you put into it.  If you put the  text of a field  
into gVariable (like in your first example above) and then try to  
assign the unicodeText of another field to the variable will you get  
junk in the field since it is the same as saying

set the unicodeText of fld "field" to text of field "unicodeStuff"

Just remember that it is the field that has different ways to access  
the text in the field (text, htmlText, unicodeText, rtf).  Your  
variable is just holding whatever you initially put into it.


-- 
Trevor DeVore
Blue Mango Multimedia
trevor at mangomultimedia.com



More information about the use-livecode mailing list