有这样一个路径url
window.location=':{contextPath}/flex/gzyj_gis.html?associateGridId='+selectedRow.ID+'&assocaiateGridName='+selectedRow.NAME);
associateGridName="XXXX"传递的是中文,结果在flex端接收参数的时候出现中文乱码
参阅http://chenyabiao0706.blog.163.com/blog/static/136554361201041915454885/
http://wolfdream.iteye.com/blog/443301
给中文参数associateGridName的值加上encodeURIComponent(selectedRow.NAME);
即最先的url现在应该变为
window.location=':{contextPath}/flex/gzyj_gis.html?associateGridId='+selectedRow.ID+'&assocaiateGridName='+encodeURIComponent(selectedRow.NAME);
在flex端获取到该值比如value,再对其进行解码decodeURIComponent(value)
我的中文乱码解决了!