Hi,
I'm working on a program that fetches some translated texts from Altavista online translator , it works fine with languages like German, french & .. but it can not get translated text in Japanese or Russian or chinese.
my code is something like this:
##################################
data1 = urllib.urlopen('http://www.babelfish.altavista.com/babelfish/trurl_pagecontent?lp=en_ru&url=""
)
data1=data1.decode('utf-8')
f=open('/usr/local/new/tt.html','w')
f.write(data1.encode('utf-8'))
f.close()
###########################################
Any help appreciated.
Best Wishes,
M.Babaei
_______________________________________________ Web-SIG mailing list Web-SIG@python.org Web SIG: http://www.python.org/sigs/web-sig Unsubscribe: http://mail.python.org/mailman/options/web-sig/archive%40mail-archive.com