读书人

eclipse birt 汉语言参数乱码

发布时间: 2013-04-09 16:45:09 作者: rapoo

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

读书人网 >Eclipse开发

热点推荐