getting b in string python code example Example: b'string' python >>> b'\xE2\x82\xAC'.decode('UTF-8') '€'