google translate

Marc Lehmann schmorp at schmorp.de
Sun Jun 27 15:20:57 CEST 2010


On Sun, Jun 27, 2010 at 02:38:17AM -0400, "Benjamin R. Haskell" <rxvt-unicode at benizi.com> wrote:
> Your commented-out code was close.  I think you want locale_decode 
> instead of locale_encode.

I don't know anything about google webservices (and this is unlikely to have
anything to do with urxvt, which expects unicode), but I somehow don't
believe that google delivers text in your local encoding (how would it know
:).

My guess is that the webservice expects utf-8 and wants utf-8, so as rxvt
delivers and epxects text in unicode, you first have to encode/decode
to/from utf-8, using e.g. the Encode module.

But again, I don't know what encoding WebService::Google::Language
expects, but it will almostc etrainly not match your local encoding except
by chance.

-- 
                The choice of a       Deliantra, the free code+content MORPG
      -----==-     _GNU_              http://www.deliantra.net
      ----==-- _       generation
      ---==---(_)__  __ ____  __      Marc Lehmann
      --==---/ / _ \/ // /\ \/ /      schmorp at schmorp.de
      -=====/_/_//_/\_,_/ /_/\_\




More information about the rxvt-unicode mailing list