Ajax response having special characters -
i using ajax validation. using servlet in server side.i writing in response follows
response.setcontenttype("text/xml"); response.setcharacterencoding("utf-8"); response.setheader("cache-control", "no-cache"); response.getwriter().write("123");
the response xml coming invalid if have special charcters © ,® , in ie. please let me know how response xml valid having above special characters in it.
download apache commons stringescapeutils. has function escaping things ©
Comments
Post a Comment