I'm working on an Android project which sends datas to my webservice et stores them in my database.
I added an edit text field which allow the user to put some comments. But some character like the quotes are replaced by a question mark in a lozenge when datas arrived in the webservice.
So I implement an method which use the function "replace" to replace the special character by "".
My question: is there another way to delete them of my keyboard (in order to prevent to use these characters)? Or the user can press on it but without action.
EDIT 1:
Finally is it possible to allow these characters:
- [a-z]
- accented characters
- [A-Z]
- [0-9]
- ?,.;/:!%*-+_ {}() [] ...
And replace the other one by " "