<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://wiki.huihoo.com/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh-cn">
		<id>http://wiki.huihoo.com/wiki/?action=history&amp;feed=atom&amp;title=RedMine_Chinese</id>
		<title>RedMine Chinese - 版本历史</title>
		<link rel="self" type="application/atom+xml" href="http://wiki.huihoo.com/wiki/?action=history&amp;feed=atom&amp;title=RedMine_Chinese"/>
		<link rel="alternate" type="text/html" href="http://wiki.huihoo.com/wiki/?title=RedMine_Chinese&amp;action=history"/>
		<updated>2026-05-14T03:51:13Z</updated>
		<subtitle>本wiki的该页面的版本历史</subtitle>
		<generator>MediaWiki 1.19.2</generator>

	<entry>
		<id>http://wiki.huihoo.com/wiki/?title=RedMine_Chinese&amp;diff=17211&amp;oldid=prev</id>
		<title>2007年12月12日 (三) 12:03 Allen</title>
		<link rel="alternate" type="text/html" href="http://wiki.huihoo.com/wiki/?title=RedMine_Chinese&amp;diff=17211&amp;oldid=prev"/>
				<updated>2007-12-12T12:03:32Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr valign='top'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;←上一版本&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;2007年12月12日 (三) 12:03的版本&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;第46行：&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;第46行：&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;来源: http://www.cnblogs.com/ivice/archive/2007/11/14/959252.html&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;来源: http://www.cnblogs.com/ivice/archive/2007/11/14/959252.html&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;3、数据库乱码&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Allen</name></author>	</entry>

	<entry>
		<id>http://wiki.huihoo.com/wiki/?title=RedMine_Chinese&amp;diff=17210&amp;oldid=prev</id>
		<title>2007年12月12日 (三) 12:02 Allen</title>
		<link rel="alternate" type="text/html" href="http://wiki.huihoo.com/wiki/?title=RedMine_Chinese&amp;diff=17210&amp;oldid=prev"/>
				<updated>2007-12-12T12:02:48Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;redMine 使用的中文语言包，文件路径：lang\zh.yml&lt;br /&gt;
&lt;br /&gt;
1、PDF导出乱码&lt;br /&gt;
状况：acrobat打开以后提示安装繁体字库。下载后打开乱码。&lt;br /&gt;
&lt;br /&gt;
原因：redmine项目是以utf-8编码。acrobat reader不带unicode字体。而生成pdf必须用gb2312或者Big5&lt;br /&gt;
pdf导出编码是在zh.yml定义的。&lt;br /&gt;
&lt;br /&gt;
修改zh.yml&lt;br /&gt;
 zh.yml文件第55行改为&lt;br /&gt;
 general_pdf_encoding: gb2312&lt;br /&gt;
&lt;br /&gt;
修改ifpdf_helper.rb&lt;br /&gt;
 ifpdf_helper.rb第36行开始改为&lt;br /&gt;
 when :zh&lt;br /&gt;
     extend(PDF_Chinese)&lt;br /&gt;
     AddGBFont()&lt;br /&gt;
     @font_for_content = 'GB'&lt;br /&gt;
     @font_for_footer = 'GB'&lt;br /&gt;
重新启动server，下载打开成功。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2、文档列表下载的文件名乱码&lt;br /&gt;
&lt;br /&gt;
分析：在linux下载文件的时候文件名是正确的，估计是由于windows默认是gbk编码所致，需要在下载的时候修改编码。&lt;br /&gt;
&lt;br /&gt;
修改：一般来说还是用windows客户端占绝大多数，因此直接修改下载文件名用gb2312编码。&lt;br /&gt;
&lt;br /&gt;
修改documents_controller.rb&lt;br /&gt;
 &lt;br /&gt;
 原代码41行开始&lt;br /&gt;
 def download&lt;br /&gt;
     @attachment = @document.attachments.find(params[:attachment_id])&lt;br /&gt;
     @attachment.increment_download&lt;br /&gt;
     send_file @attachment.diskfile, :filename =&amp;gt; @attachment.filename&lt;br /&gt;
 &lt;br /&gt;
 改为&lt;br /&gt;
 def download&lt;br /&gt;
     @attachment = @document.attachments.find(params[:attachment_id])&lt;br /&gt;
     @attachment.increment_download&lt;br /&gt;
      @ic ||= Iconv.new(l(:general_pdf_encoding), 'UTF-8')&lt;br /&gt;
     send_file @attachment.diskfile, :filename =&amp;gt; @ic.iconv(@attachment.filename)&lt;br /&gt;
&lt;br /&gt;
 并在文件最上面加入&lt;br /&gt;
 require 'iconv'&lt;br /&gt;
&lt;br /&gt;
来源: http://www.cnblogs.com/ivice/archive/2007/11/14/959252.html&lt;/div&gt;</summary>
		<author><name>Allen</name></author>	</entry>

	</feed>