From d9e6359a839d7097283c237e4982e8ef5df2849e Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Fri, 26 Oct 2007 16:35:27 +0000 Subject: [PATCH] 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 --- app/helpers/ifpdf_helper.rb | 2 ++ 1 file changed, 2 insertions(+) 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('\\') -- 2.39.5