Curt,

I don't know Russian, but it works in Japanese.

on mouseUp
   put "http://www.google.com/search?q="; into tWordToSearch
put urlEncode(unidecode(fld "word field", utf8)) of cd "Review Words" after tWordToSearch
   revGoURL tWordToSearch
end mouseUp

--
Kenji Kojima
http://www.kenjikojima.com/



On Sep 7, 2005, at 4:29 PM, Curtis Ford wrote:

I'm working on a project with a button to send a word to Google to show additional examples in a browser. The following code works fine with languages using the Latin alphabet; accents, umlauts, etc. don't seem to cause problems:

 on mouseUp

   put "http://www.google.com/search?q="; into tWordToSearch
   put  fld "word field" of cd "Review Words" after tWordToSearch
   revGoURL tWordToSearch

end mouseUp

I'd like it to work with Russian but can't figure out what I need to change. The code above gives me this in the browser's search bar:

http://www.google.com/[EMAIL PROTECTED]

I've tried using urlEncode(tWordToSearch), setting useUnicode to true, using unicodeText of the field that contains the search term, etc., but can't get the right combination .. anyone have any ideas?

Thanks!!

-Curt





Dr. Curtis Ford
Instructor of Russian and Linguistics
Dept. of Languages, Literatures, and Cultures
University of South Carolina
cford at sc.edu




_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to