On running python 2.7 script with code
with open(excelfile,'r') as openexcel:
    for line in openexcel:
        emp_firstname=line.split(',')[3]
        emp_lastname=line.split(',')[2]
        cursor.execute('SELECT id,Firstname,LastName FROM employee where 
        FirstName=? and LastName=?',emp_firstname,emp_lastname)
Here after emp_firstname=line.split(',')[3], emp_firstname value is Narélen which throws an error as,
cursor.execute('SELECT id,Firstname,LastName FROM employee where FirstName=? and LastName=?',emp_firstname,emp_lastname)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe9 in position 3: ordinal not in range(128)
I tried some google search too but still far away from expected result. Please suggest some way to get out of this error.
 
    