精華區 > 拾人牙慧
Ubuntu 11.04 以LAMP為架構 OCSNG+GLPI做資產管理
zarr12steven:
--- 引述: adolph 於 2011-12-01 21:38 ---中文亂碼問題可以參考http://forums.ocsinventory-ng.org/viewtopic.php?id=9624
以下方法確認對2.0.2 有效,且可以看到Win7_x64的序號,不過OS name 還是會有亂碼,但是已經好很多了
------------------------------------------------------------------------------------------
On "require/function_table_html.php" line 1336
change
$htmlentities=true;
to
$htmlentities=false;
And on "require/function_machine.php" line 109
comment line
$value=htmlentities($value);
------------------------------------------------------------------------------------------
(測試環境是用CentOS 5.7架的vm,官方就有架好的vm , http://www.ocsinventory-ng.org/en/download/download-server.html)
另一種方法我用了還未成功過,不過有人說此法有效
------------------------------------------------------------------------------------------
In your OCS directory (like "/usr/share/ocsinventory-reports/ocsreports") and below : search all .php files contains "htmlentities("
replace all
"htmlentities($*);"
to
"htmlentities($*,ENT_COMPAT | ENT_HTML401,"UTF-8");"
------------------------------------------------------------------------------------------
--- 引用結尾 ---
謝謝adolph學長的資訊,我會在近期內做測試!!!非常感謝^^
後續有測試成功會再po文!
導覽
[0] 文章列表
[*] 上頁
前往完整版本