@@ -0,0 +1,19 | |||||
|
1 | Date: Tue, 13 Aug 2013 10:56:04 +0700 | |||
|
2 | From: John Smith <JSmith@somenet.foo> | |||
|
3 | Content-Type: multipart/alternative; boundary=001a11c260fa53f8dc04e3cc380b | |||
|
4 | Subject: issue 14675 | |||
|
5 | To: redmine@somenet.foo | |||
|
6 | ||||
|
7 | --001a11c260fa53f8dc04e3cc380b | |||
|
8 | Content-Type: text/plain; charset=UTF-8 | |||
|
9 | Content-Transfer-Encoding: quoted-printable | |||
|
10 | ||||
|
11 | Freundliche Gr=C3=BCsse | |||
|
12 | ||||
|
13 | --001a11c260fa53f8dc04e3cc380b | |||
|
14 | Content-Type: text/html; charset=UTF-8 | |||
|
15 | Content-Transfer-Encoding: quoted-printable | |||
|
16 | ||||
|
17 | <div dir=3D"ltr">Freundliche Gr=C3=BCsse<br></div> | |||
|
18 | ||||
|
19 | --001a11c260fa53f8dc04e3cc380b-- |
@@ -529,6 +529,17 class MailHandlerTest < ActiveSupport::TestCase | |||||
529 | assert_equal str, issue.subject |
|
529 | assert_equal str, issue.subject | |
530 | end |
|
530 | end | |
531 |
|
531 | |||
|
532 | def test_quoted_printable_utf8 | |||
|
533 | issue = submit_email( | |||
|
534 | 'quoted_printable_utf8.eml', | |||
|
535 | :issue => {:project => 'ecookbook'} | |||
|
536 | ) | |||
|
537 | assert_kind_of Issue, issue | |||
|
538 | str = "Freundliche Gr\xc3\xbcsse" | |||
|
539 | str.force_encoding('UTF-8') if str.respond_to?(:force_encoding) | |||
|
540 | assert_equal str, issue.description | |||
|
541 | end | |||
|
542 | ||||
532 | def test_add_issue_with_japanese_subject |
|
543 | def test_add_issue_with_japanese_subject | |
533 | issue = submit_email( |
|
544 | issue = submit_email( | |
534 | 'subject_japanese_1.eml', |
|
545 | 'subject_japanese_1.eml', |
General Comments 0
You need to be logged in to leave comments.
Login now