实例: 转换编码
if font_family is not None: # 仅限网易 font_family = bytes(font_family,encoding='gb18030').decode('utf-8','ignore')
’