@@ -35,9 +35,9 class PdfTest < ActiveSupport::TestCase | |||
|
35 | 35 | txt_1 = Redmine::Export::PDF::RDMPdfEncoding::rdm_from_utf8(utf8_txt_1, encoding) |
|
36 | 36 | txt_2 = Redmine::Export::PDF::RDMPdfEncoding::rdm_from_utf8(utf8_txt_2, encoding) |
|
37 | 37 | txt_3 = Redmine::Export::PDF::RDMPdfEncoding::rdm_from_utf8(utf8_txt_3, encoding) |
|
38 | assert_equal "?\x91\xd4", txt_1 | |
|
39 | assert_equal "?\x91\xd4?", txt_2 | |
|
40 | assert_equal "??\x91\xd4?", txt_3 | |
|
38 | assert_equal "?\x91\xd4".force_encoding("ASCII-8BIT"), txt_1 | |
|
39 | assert_equal "?\x91\xd4?".force_encoding("ASCII-8BIT"), txt_2 | |
|
40 | assert_equal "??\x91\xd4?".force_encoding("ASCII-8BIT"), txt_3 | |
|
41 | 41 | assert_equal "ASCII-8BIT", txt_1.encoding.to_s |
|
42 | 42 | assert_equal "ASCII-8BIT", txt_2.encoding.to_s |
|
43 | 43 | assert_equal "ASCII-8BIT", txt_3.encoding.to_s |
General Comments 0
You need to be logged in to leave comments.
Login now