While I decode email subjects, I see this issue:
>>> s = '=?UTF-8?B?0LU=?='
>>> decode_subjects(s)
'е'
>>> decode_subjects(s).encode()
b'\xd0\xb5'
>>> 'e'.encode() # 'e' in ascii letters
b'e'
>>> decode_subjects(s) == 'e'
False
** decode_subject()
is using from email.header import decode_header, make_header
s = '=?UTF-8?B?0LU=?='
will represent to the same with e
in ASCII, but they are different.
Do we have other characters like that? Ex: b'\xSomething'.decode() => 'a' ....
How can I know it represented to which character in ASCII, by code?