<div style="DIRECTION: ltr">
<div>Hi,</div>
<div>I'm working on a program that fetches some translated texts from <strong>Altavista online translator , </strong>it works fine with languages like German, french & .. but it <strong>can not</strong> get translated text in Japanese or Russian or chinese.
</div>
<div>my code is something like this:</div>
<div> </div>
<div>##################################</div>
<div>data1 = urllib.urlopen('<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.babelfish.altavista.com/babelfish/trurl_pagecontent?lp=en_ru&url=http://www.google.com').read(" target="_blank">
http://www.babelfish.altavista.com/babelfish/trurl_pagecontent?lp=en_ru&url=http://www.google.com').read( </a>)</div>
<div>data1=data1.decode('utf-8')</div>
<div>f=open('/usr/local/new/tt.html','w')</div>
<div>f.write(data1.encode('utf-8'))</div>
<div>f.close()</div>
<div> </div>
<div>###########################################</div>
<div> </div>
<div>Any help appreciated.</div>
<div> </div>
<div>Best Wishes,</div>
<div>M.Babaei</div></div>