Pulling Unicode Data from a DataGrid

James Little littlejamesw at mac.com
Tue Mar 19 13:21:59 EDT 2013


1) Are you populating the data grid with an array containing UTF-16 data?
UTF 8, I overrode the default behavior and when I FillInData: I do this:
         set the unicodetext of the long ID of me to uniencode(pData, "utf8") 
and this works great. But, when I tried converting to UTF-16, then it is garbled.

         set the unicodetext of the long ID of me to uniencode(pData, "utf16")

2) When you display the Japanese text in the data grid are you setting the
unicodeText of a field in the row?
-Yes, see above script.

3) Is the user updating this Japanese text at all or is it read-only?
-It's read-only.

4) What conversions are you trying to run on the data when you pull it out
with GetDataOfLine?
   put uniDecode(uniEncode(tVar, "UTF16")) into tVar
We basically want to compare UTF-16 strings.

Thanks Trevor for digging into this. :D

-Todd


More information about the use-livecode mailing list