From: Jean-Philippe Lang Date: Fri, 26 Oct 2007 16:35:27 +0000 (+0000) Subject: Fixed: some quotation marks are rendered as strange characters in pdf. X-Git-Tag: 0.6.0~13 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d9e6359a839d7097283c237e4982e8ef5df2849e;p=redmine.git Fixed: some quotation marks are rendered as strange characters in pdf. git-svn-id: http://redmine.rubyforge.org/svn/trunk@871 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/helpers/ifpdf_helper.rb b/app/helpers/ifpdf_helper.rb index 5e7fb2898..585dbeeca 100644 --- a/app/helpers/ifpdf_helper.rb +++ b/app/helpers/ifpdf_helper.rb @@ -52,6 +52,8 @@ module IfpdfHelper def Cell(w,h=0,txt='',border=0,ln=0,align='',fill=0,link='') @ic ||= Iconv.new(l(:general_pdf_encoding), 'UTF-8') + # these quotation marks are not correctly rendered in the pdf + txt = txt.gsub(/[“”]/, '"') if txt txt = begin # 0x5c char handling txtar = txt.split('\\')