Unicode Encode Error while using mechanize to log in to website
I am using mechanize to log into website https://www.patientslikeme.com but I get the error: UnicodeEncodeError: 'ascii' codec can't encode character u'\u2713' in position 0: ordinal not in range(128). Please reply how can this be resolved. Code: import mechanize import cookielib br = mechanize.Browser() br.set_handle_robots( False ) cj = cookielib.LWPCookieJar() br.set_cookiejar(cj) br.addheaders = [('User-agent', 'Firefox')] br.open('https://www.patientslikeme.com/users/sign_in') br.select_form( nr=1) br['user[email_or_login]'] = 'divyat' br['user[password]']= 'nothing' logged_in= br.submit() logincheck= logged_in.read() Error is caused by the line logged_in= br.submit()
lookahead algorithm in Python
flask + gunicorn, make a redirect stick to the same worker thread
What is the difference between t_ignore, pass and t.lexer.skip() in ply.lex?
how do i pass groupby elements as lists to a function in python/pandas
Numpy argwhere inequality conditions
How CMD.exe recognize an extension need program?
How to edit data with django-tables2 in a frontend?
While loop giving different return and print results?
Trouble understanding a strange Python import
Reading the binary file shows unreadable characters
Dynamically re-sizing images in a GStreamer pipeline in python
efficient expanding linregress
Passing python dictionary to a class changes the value of dictionary [duplicate]
Convert list into correct input for polyfit [closed]
Python inheritance with super
Limiting the subquery with SQLAlchemy