def get_charset(self, part):
		charset = part.get_content_charset()
		if not charset:
			import chardet
			charset = chardet.detect(str(part))['encoding']

		return charset
Load a uid.
dataset/ETHPy150Open frappe/frappe/frappe/email/receive.py/Email.get_charset--crossover with--dataset/ETHPy150Open google/simian/src/simian/mac/munki/plist.py/ApplePlist._BinLoadUid