dcparker/ruby-gmail

Special characters in the :gm search option

Opened this issue · 0 comments

Using special characters in the :gm option, results in a incompatible encoding regexp match (ASCII-8BIT regexp with UTF-8 string) (Encoding::CompatibilityError)

Example to reproduce:
gmail.inbox.emails(:gm => '€')

I've even tried doing gmail.inbox.emails(:gm => '€'.force_encoding('ascii-8bit')), however it results in a Could not parse command (Net::IMAP::BadResponseError)