1 2
o Try to figure out the encoding of an email first by looking into its header, if that fails then by using chardet.