--- /dev/null
+Date: Tue, 13 Aug 2013 10:56:04 +0700
+From: John Smith <JSmith@somenet.foo>
+Subject: =?ISO-8859-2?Q?Nikad_vi=B9e?=\r
+To: redmine@somenet.foo
+Content-Type: text/plain; charset=ISO-8859-2\r
+Content-Transfer-Encoding: quoted-printable\r
+\r
+Na =B9triku se su=B9i =B9osi=E6.\r
+
+--=20\r
+=B9osi=E6
assert_equal str, issue.description
end
+ def test_gmail_iso8859_2
+ issue = submit_email(
+ 'gmail-iso8859-2.eml',
+ :issue => {:project => 'ecookbook'}
+ )
+ assert_kind_of Issue, issue
+ str = "Na \xc5\xa1triku se su\xc5\xa1i \xc5\xa1osi\xc4\x87."
+ str.force_encoding('UTF-8') if str.respond_to?(:force_encoding)
+ assert issue.description.include?(str)
+ end
+
def test_add_issue_with_japanese_subject
issue = submit_email(
'subject_japanese_1.eml',