summaryrefslogtreecommitdiffstats
path: root/lib/redmine/export/pdf.rb
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2019-03-20 01:36:44 +0000
committerGo MAEDA <maeda@farend.jp>2019-03-20 01:36:44 +0000
commit606e75d12d30644d15732f8fbbb61041c2abde3b (patch)
tree7cb4fd47c97bfa77f9212dd36bea883d25def70a /lib/redmine/export/pdf.rb
parent26509e7f4c6dae94baf291b95d46eb6ec8ebca0b (diff)
downloadredmine-606e75d12d30644d15732f8fbbb61041c2abde3b.tar.gz
redmine-606e75d12d30644d15732f8fbbb61041c2abde3b.zip
Use #b shortcut instead of #force_encoding (#31059).
Patch by Pavel Rosický. git-svn-id: http://svn.redmine.org/redmine/trunk@17992 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine/export/pdf.rb')
-rw-r--r--lib/redmine/export/pdf.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/redmine/export/pdf.rb b/lib/redmine/export/pdf.rb
index 8cf0c5ff1..4ce7c7ac8 100644
--- a/lib/redmine/export/pdf.rb
+++ b/lib/redmine/export/pdf.rb
@@ -134,9 +134,7 @@ module Redmine
class RDMPdfEncoding
def self.rdm_from_utf8(txt, encoding)
txt ||= ''
- txt = Redmine::CodesetUtil.from_utf8(txt, encoding)
- txt.force_encoding('ASCII-8BIT')
- txt
+ Redmine::CodesetUtil.from_utf8(txt, encoding).b
end
def self.attach(attachments, filename, encoding)