I am working on application in which I need to pass all the data send to server via json array at exact user had passed.
But My problem is When I pass Single quote message doesn't send to server.
I had tried.
text=text.replaceAll("'","\'");
But My problem is
- When user press single quote message doesn't send.
- When user press single quote two time only one single quote is send.
Please give solution for that.