DHTMLX Editor Special Character Issue

HI
I am using DHTMLX Editor on one of my page with Struts2 as backend.
Any special character added on to the Editor gets replaced by a space in Sturts2 action. Could you please let me know what is the solution for this.