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