@@ -53,10 +53,13 module IfpdfHelper | |||||
53 | def Cell(w,h=0,txt='',border=0,ln=0,align='',fill=0,link='') |
|
53 | def Cell(w,h=0,txt='',border=0,ln=0,align='',fill=0,link='') | |
54 | @ic ||= Iconv.new(l(:general_pdf_encoding), 'UTF-8') |
|
54 | @ic ||= Iconv.new(l(:general_pdf_encoding), 'UTF-8') | |
55 | txt = begin |
|
55 | txt = begin | |
56 | @ic.iconv(txt) |
|
56 | # 0x5c char handling | |
|
57 | txtar = txt.split('\\') | |||
|
58 | txtar << '' if txt[-1] == ?\\ | |||
|
59 | txtar.collect {|x| @ic.iconv(x)}.join('\\').gsub(/\\/, "\\\\\\\\") | |||
57 | rescue |
|
60 | rescue | |
58 | txt |
|
61 | txt | |
59 | end |
|
62 | end || '' | |
60 | super w,h,txt,border,ln,align,fill,link |
|
63 | super w,h,txt,border,ln,align,fill,link | |
61 | end |
|
64 | end | |
62 |
|
65 |
General Comments 0
You need to be logged in to leave comments.
Login now