@@ -38,7 +38,11 class PdfTest < ActiveSupport::TestCase | |||
|
38 | 38 | set_language_if_valid 'ja' |
|
39 | 39 | assert_equal 'CP932', l(:general_pdf_encoding) |
|
40 | 40 | if RUBY_VERSION < '1.9' |
|
41 | ic = Iconv.new(l(:general_pdf_encoding), 'UTF-8') | |
|
41 | if RUBY_PLATFORM == 'java' | |
|
42 | ic = Iconv.new("SJIS", 'UTF-8') | |
|
43 | else | |
|
44 | ic = Iconv.new(l(:general_pdf_encoding), 'UTF-8') | |
|
45 | end | |
|
42 | 46 | end |
|
43 | 47 | utf8_txt_1 = "\xe7\x8b\x80\xe6\x85\x8b" |
|
44 | 48 | utf8_txt_2 = "\xe7\x8b\x80\xe6\x85\x8b\xe7\x8b\x80" |
General Comments 0
You need to be logged in to leave comments.
Login now