Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Return-Path: john@example.com
- Mime-Version: 1.0
- Content-Type: text/plain
- From: john@example.com
- To: test@example.com
- Subject: =?UTF-8?Q?Example_=C3=A9?=
- Message-Id: <E1a8Qv0-000762-Ig@example.com>
- Date: Mon, 14 Dec 2015 08:03:50 -0300
- El mensaje que usted envió requiere confirmación.
- > b.body.decoded
- => "nEl mensaje que usted envixC3xB3 requiere confirmacixC3xB3n."
- > b.body.decoded.encoding
- => #<Encoding:ASCII-8BIT>
- > b.body.decoded.encode('UTF-8')
- Encoding::UndefinedConversionError: "xC3" from ASCII-8BIT to UTF-8
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement