problems with unicode
Posted: Tue Jun 24, 2008 3:43 pm
I'm working on a psychology experiment that is basically a flashcard program for Lithuanian-English word pairs. I started by using htmltext to preserve text as it was transferred from field to variable to field, which works fine for presenting the words to the user, however when it comes time to write to file, my text file becomes a mess of html tags. Since a human will eventually have to grade these, it just wont do.
I figure unicode is the way to go, however I've run into a couple problems. When I take the unicodetext out of one field and put it into another, it works fine. But when i transfer the unicode from variable to array, things get sticky. for example, this works:
however this does not:
Everything looks Chinese when it goes into fld "word". I assume that it has something to do when putting the chunks of tData into the lith array. Creating the array directly from the field is not an option. Any help would be greatly appreciated.
I figure unicode is the way to go, however I've run into a couple problems. When I take the unicodetext out of one field and put it into another, it works fine. But when i transfer the unicode from variable to array, things get sticky. for example, this works:
Code: Select all
put the unicodetext of fld list of cd main into tData
set the unicodeText of fld list2 of cd main to tData
Code: Select all
put the unicodetext of fld list of cd main into tData
repeat with x=1 to 50
put item 1 of line x of tData into lith[x]
end repeat
repeat with x=1 to 50
set the unicodetext of fld "cue" of cd main to lith[x]
wait 5 seconds
end repeat