在Oracle DeveloperSuite10g Report中,用Run Paper Layout資料內容可
正常顯示;但Run Web Layout時,資料內容會出現亂碼。
解決方法如下:
Ⅰ.未使用template
1.將REPOT中的WEB SOURCE 內容,ISO-8859-1 改為 BIG5
<%@ page contentType="text/html;charset=ISO-8859-1" %>
Ⅱ.使用template
Template 對應檔名
--------- ------------------------------------------------
Beige C:\DevSuiteHome_2\reports\templates\rwbeige.html
Blue C:\DevSuiteHome_2\reports\templates\rwblue.html
Gray C:\DevSuiteHome_2\reports\templates\rwgray.html
Green C:\DevSuiteHome_2\reports\templates\rwgreen.html
Peach C:\DevSuiteHome_2\reports\templates\rwpeach.html
Wine C:\DevSuiteHome_2\reports\templates\rwwine.html
依使用的TEMPLATE不同,修改相對的檔案內容
1.在rwbeige.html 最上方加入:
<%@ page contentType="text/html;charset=BIG5" %>
2.將 ISO-8859-1 改為 BIG5
<META http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
ps.在修改TEMPLATE前已產生的報表LAYOUT需逐支程式修改web source
留言列表