many thanks for your email and your help. Here's what happens:
put uniencode (url "file:translations.txt","utf8") into tTranslations split tTranslations with cr and tab answer the keys of tTranslations
-- this gives me the same empty boxes and numbers instead of Cyrillic words. What does this mean?
And yes, I am storing the array this way:
set the customProperties[cTranslations] of this stack to tTranslations
I've spent a lot of time looking at my code, and I really can't find anything wrong with it.
All best, Toma
On Thursday, May 29, 2003, at 04:08 PM, Jan Schenkel wrote:
Hi Toma,
Have you checked the status of the array after the split? What do you get for : answer the keys of tTranslations And how do you store it ? I gues you are using : set the customProperties["uTranslations"] to \ tTranslations
Jan Schenkel.
Original post:
I am doing a simple thing: reading a utf8 encoded file into a variable, turning the variable into an array by splitting it with cr and tab, then setting the custom property set of the stack to the array. All quite straight forward.
However:
1) when I look up the custom properties -- in my case, cTranslations -- in the inspector, I get garbled text consisting mostly of empty squares and numbers.
2) when I try to use the custom properties with the following code:
put the clickText into tClickedWord
-- the text which is being clicked on in a field was imported from a utf8 encoded file
put the cTranslations[tClickedWord] of this tack into fld "translationDisplay"
nothing happens,
3) when I try to use the message box with the following code:
put the cTranslations[зима] of this stack
(I don't know if this will come out right on everybody's email clients, but the bracketed word is in Cyrillic) -- after I hit return, the Cyrillic word gets turned into squares and numbers, and I get the message:
Script compile error: Error description: Commands: missing ','
_______________________________________________ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
