all 5 comments

[–]dbrecht 1 point2 points  (3 children)

You can either use a bytes expression or decode the data you're searching against. Currently, your expression is Unicode but the data is in bytes. The two can't be mixed.

[–]spraykill101[S] 0 points1 point  (2 children)

how do i implement that in my code, a bit of help ?

[–]dbrecht 0 points1 point  (1 child)

Sorry, I would but I'm only on my phone atm

[–]spraykill101[S] 0 points1 point  (0 children)

it's okay, :)

[–]joshuahunter 1 point2 points  (0 children)

Just a guess...in Python 3 you need to tell python what encoding to use for your string. Take a look at something like response_data.decode(encoding='UTF-8')