fix for #8973: Export feature(to csv/pdf) doesn't work in Japanese

csv and pdf encoding are know defined for each language (general_csv_encoding and general_pdf_encoding keys in lang files)
added SJIS font for japanese pdf exports

git-svn-id: http://redmine.rubyforge.org/svn/trunk@287 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2007-03-01 19:49:04 +00:00
parent 83c96d4f3e
commit 6a875eb691
12 changed files with 92 additions and 65 deletions
+1 -1
View File
@@ -262,7 +262,7 @@ class ProjectsController < ApplicationController
:conditions => @query.statement,
:limit => Setting.issues_export_limit
ic = Iconv.new('ISO-8859-1', 'UTF-8')
ic = Iconv.new(l(:general_csv_encoding), 'UTF-8')
export = StringIO.new
CSV::Writer.generate(export, l(:general_csv_separator)) do |csv|
# csv header fields