charlierguo / gmail

A Pythonic interface for Google Mail
MIT License
1.77k stars 386 forks source link

Fix unicode #52

Open Fizzadar opened 9 years ago

Fizzadar commented 9 years ago

Hey @charlierguo, I was working with some emails from urban outfitters and they have a real knack for including the most annoying and invalid unicode characters, which led me to here. The specific character was \x96 and decode_header was giving None - given this I think the best solution is to ignore...