@@ -151,11 +151,17 module Redmine | |||
|
151 | 151 | txt.force_encoding('ASCII-8BIT') |
|
152 | 152 | else |
|
153 | 153 | @ic ||= Iconv.new(l(:general_pdf_encoding), 'UTF-8') |
|
154 |
txt = |
|
|
155 |
|
|
|
154 | txtar = "" | |
|
155 | begin | |
|
156 | txtar += @ic.iconv(txt) | |
|
157 | rescue Iconv::IllegalSequence | |
|
158 | txtar += $!.success | |
|
159 | txt = '?' + $!.failed[1,$!.failed.length] | |
|
160 | retry | |
|
156 | 161 | rescue |
|
157 | txt | |
|
162 | txtar += $!.success | |
|
158 | 163 | end |
|
164 | txt = txtar | |
|
159 | 165 | end |
|
160 | 166 | # 0x5c char handling |
|
161 | 167 | txt.gsub(/\\/, "\\\\\\\\") |
General Comments 0
You need to be logged in to leave comments.
Login now