eclipse birt 汉语言参数乱码

eclipse birt 中文参数乱码1.前台URL编码document.getElementById(frame_buyInStoreReport).contentWind

eclipse birt 中文参数乱码
1.前台URL编码

document.getElementById("frame_buyInStoreReport").contentWindow.location = encodeURI(encodeURI(src));


2.后台报表设计器的scipt中。

var fpurchaseadd = reportContext.getParameterValue("fpurchaseadd");if(fpurchaseadd!=null && fpurchaseadd!=""){where_sql += " and fpurchaseadd = '"+decodeURI(fpurchaseadd)+"' ";}


OK中文解决。