PDF: remove replacing non ASCII quotation marks (#61).

Languages except CJK and Thailand use TCPDF UTF-8.
TCPDF UTF-8 supports these quotation marks.

Contributed by Jun NAITOH.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5306 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2011-04-04 01:10:31 +00:00
parent 846ac262ec
commit d435195764
1 changed files with 0 additions and 2 deletions

View File

@ -144,8 +144,6 @@ module Redmine
def fix_text_encoding(txt) def fix_text_encoding(txt)
@ic ||= Iconv.new(l(:general_pdf_encoding), 'UTF-8') @ic ||= Iconv.new(l(:general_pdf_encoding), 'UTF-8')
# these quotation marks are not correctly rendered in the pdf
txt = txt.gsub(/[“â€<C3A2>]/, '"') if txt
txt = begin txt = begin
# 0x5c char handling # 0x5c char handling
txtar = txt.split('\\') txtar = txt.split('\\')