首页
新闻
论坛
下载
博客
WIKI文档
主题
联系我们
全站搜索
登录
English
简体中文
繁体中文
UTF-8
文章管理
通过email发送
Email 地址
*
标题
*
内容
*
让News模块的makepdf支持多字节字符,例如UTF-8编码 这是一个News模块makepdf.php的HACK,用来使News模块能够支持多字节字符生成PDF文件。 前提条件:Xoops Frameworks 补充: 可能需要将Frameworks/fpdf/language/schinese.php修改一下 function PDF_language($orientation='P', $unit='mm', $format='A4') { //Call parent constructor $this->FPDF($orientation, $unit, $format); //Initialization $this->AddGBhwFont('simsun','宋体'); $this->AddGBhwFont('simhei','黑体'); $this->AddGBhwFont('simkai','楷体_GB2312'); $this->AddGBhwFont('sinfang','仿宋_GB2312'); <span style="color: #FF0000;">$this->out_charset = $GLOBALS['pdf_config']['charset'];</span> } 下载 Hack file makepdf.php 希望对大家有所帮助 更多... http://xoops.org.cn/modules/article/view.article.php/c19/91
Copyright ©
XOOPS
CHINA
|
SITE MAP
|
京ICP备05003401
|
开发咨询服务