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中文解决。

猜你喜欢

转载自21841625a.iteye.com/blog/1844260