惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Martin Fowler
Martin Fowler
博客园 - 【当耐特】
GbyAI
GbyAI
M
MIT News - Artificial intelligence
Microsoft Azure Blog
Microsoft Azure Blog
A
About on SuperTechFans
罗磊的独立博客
Apple Machine Learning Research
Apple Machine Learning Research
腾讯CDC
F
Fortinet All Blogs
IT之家
IT之家
WordPress大学
WordPress大学
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Last Week in AI
Last Week in AI
Google DeepMind News
Google DeepMind News
Jina AI
Jina AI
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
D
DataBreaches.Net
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
H
Help Net Security
V
Visual Studio Blog
小众软件
小众软件
Y
Y Combinator Blog

博客园 - atempcode

Debugging Visualizer for UEFI type 僵尸窗口 在Eclipse里使用Visual Studio的快捷键 Subversion in 2010 The case of Trac installation won’t run Ad in Stackoverflow.com becomes annoying Importing notes in Google Notebook to Evernote 饭否mashup: Popfly入门 (二) 饭否mashup: Popfly入门 GIT vs SVN Which Parts of China Have You Been To? 黄秋生 美丽的梭罗河 偏光鏡用法: PL, CPL I do not like itunes 焦距 单镜反光相机 光圈 DSLR和DC的差异 Firefox的饭否Toolbar 1.1
SCMBUG 邮件乱码的解决方法
atempcode · 2010-05-04 · via 博客园 - atempcode

2010-05-04 21:29  atempcode  阅读(472)  评论()    收藏  举报

1. SVNLOOK 的输出不是UTF8, 而是cmd的locale. Linux下可以指定env: http://osdir.com/ml/bug-tracking.scmbug.user/2006-12/msg00072.html. 而在Windows下就要指定一下输入格式了:

…\hooks\lib\scmbug\Scmbug\Glue\Subversion.pm

 # Cygwin has a problem with newlines
binmode( SVNLOOK_INFO, ":crlf" );
+ binmode( SVNLOOK_INFO, ':encoding(big5)');
# First line is the username
$line = <SVNLOOK_INFO>;

2. 指定发出mail的编码.

C:\Program Files\Scmbug\share\scmbug\lib\Scmbug\Daemon\Process.pm:

 %mail->{ 'X-Mailer' } = "Mail::Sendmail version $Mail::Sendmail::VERSION";
+%mail->{'Content-Type'} = 'text/plain; charset="utf-8"';
%mail->{ Subject } = $subject;