Gregarius编辑feed时中文乱码的解决

Friday, May 2nd, 2008

Gregarius编辑feeds的时候,中文总是乱码(版本r1787),其实解决方法很简单的: 找到admin/channels.php这个文件,找到第900行,修改为: //$title = htmlentities($title,ENT_QUOTES); $title = htmlspecialchars($title, ENT_QUOTES);

......[阅读全文]

Tags: , , , , ,

让phpmailer支持中文名称的附件

Tuesday, May 23rd, 2006

phpmailer设置使用utf-8编码发送邮件以后,已经能够正常的发送中文邮件了,当然你调用时传进去的中文参数必须也是utf-8编码才行,但是我发现,即使这样,发送中文文件名的附件的时候,附件名称不能正确的显示。 比如我们要发送的附件是“测试.txt”,如果在添加附件的时候强制使用指定文件名的方式:

$mail->AddAttachment($attach, $attach);

......[阅读全文]

Tags: , , , , ,