在 LDAP 下使用中文

資料來源
http://netlab.cse.yzu.edu.tw/~statue/freebsd/zh-tut/ldap.html

如果是要將 .ldif 轉入,必須先將中文轉成 utf-8。

安裝 converter/iconv, 假設要轉碼的檔案是 big5.ldif,轉出來的檔案是 utf-8.ldif。

% iconv -f big5 -t utf-8 big5.ldif > utf-8.ldif

然後就可以用 ldapadd 來將 utf-8.ldif 轉入 ldap 了。




plog 修正檔 templateview.class.php

plog 使用者上傳自己的模版後,無法以 op=Template 的方式使用自己的樣板

trace 了一下程式,找到 class/view/templateview.class.php 中少傳了一個值

修正檔下載 5-templateview.class.txt

/**
* Renders the template
*/
function render()
{
$blogSettings = $this->_blogInfo->getSettings();
//少傳了$this->_blogInfo
$template =
$this->_templateService->Template( $this->_templateFile,
$blogSettings->getValue( "template" ),$this->_blogInfo);
$template->assign( $this->_params->getAsArray());

print( $template->fetch());
}
}



讓 mozilla 印得出中文

在 Linux 環境下,要印出中文字須修改

/usr/local/mozilla/defaults/pref/unix.js

372 pref("print.postscript.nativefont.x-western", "");
373 //pref("print.postscript.nativefont.zh-CN", "");
374 //pref("print.postscript.nativefont.zh-TW", "");
375 pref("print.postscript.nativefont.zh-CN", "BousungEG-Light-GB-GB-EUC-H");
376 pref("print.postscript.nativefont.zh-TW", "ShanHeiSun-Light-B5-H");
377 pref("print.postscript.nativecode.zh-CN", "gb2312");
378 pref("print.postscript.nativecode.zh-TW", "big5");





«上一頁   1 2 3