jjlee / mechanize

Stateful programmatic web browsing in Python, after Andy Lester's Perl module WWW::Mechanize .
http://wwwsearch.sourceforge.net/mechanize/
618 stars 121 forks source link

Encode problem #84

Open hh54188 opened 11 years ago

hh54188 commented 11 years ago

Here is my code:

import re
import mechanize

br = mechanize.Browser()
br.open("http://www.douban.com/")
print br.title()

what I visit is a Chinese website, but the return title is strange character, how can I fixed this problem