Google search with unicode or HTMLText?

Kenji Kojima index at kenjikojima.com
Wed Sep 7 18:24:47 EDT 2005


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/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