On Aug 3, 2006, at 5:07 pm, Deane Venske wrote:

Hi There,

     str = h.Post("http://babelfish.altavista.com/babelfish/tr",30)
     str = DefineEncoding(s,encodings.UTF8)
     str = ConvertEncoding(s,encodings.MacRoman)
str is empty after the conversion.

Shouldn't the "s" above in DefineEncoding and ConvertEncoding be "str"?

Regards, Deane


Yup. Doin too many things at once. Try it like this... (they were originally just "s" in the code, but I didn't want it to be confusing in the email, go figure)

     str = h.Post("http://babelfish.altavista.com/babelfish/tr",30)
     str = DefineEncoding(str,encodings.UTF8)
     str = ConvertEncoding(str,encodings.MacRoman)

GregO
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to