Google search with unicode or HTMLText?

Curtis Ford cford at sc.edu
Wed Sep 7 16:29:42 EDT 2005


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/search?q=%043%04%3E%04@%045

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





More information about the Use-livecode mailing list