##// END OF EJS Templates
PDF: use SJIS instead of CP932 at unit pdf test test_rdm_pdf_iconv_invalid_utf8_should_be_replaced_ja in JRuby (#8565, #61)....
Toshi MARUYAMA -
r5903:2c803670d808
parent child
Show More
@@ -95,7 +95,11 class PdfTest < ActiveSupport::TestCase
95 95 str1.force_encoding("UTF-8") if str1.respond_to?(:force_encoding)
96 96 str2.force_encoding("ASCII-8BIT") if str2.respond_to?(:force_encoding)
97 97 if RUBY_VERSION < '1.9'
98 ic = Iconv.new(l(:general_pdf_encoding), 'UTF-8')
98 if RUBY_PLATFORM == 'java'
99 ic = Iconv.new("SJIS", 'UTF-8')
100 else
101 ic = Iconv.new(l(:general_pdf_encoding), 'UTF-8')
102 end
99 103 end
100 104 txt_1 = Redmine::Export::PDF::RDMPdfEncoding::rdm_pdf_iconv(ic, str1)
101 105 txt_2 = Redmine::Export::PDF::RDMPdfEncoding::rdm_pdf_iconv(ic, str2)
General Comments 0
You need to be logged in to leave comments. Login now