Search code examples
javaandroidspecial-charactersandroid-edittext

how to get all special characters typed by user in edit text in android


Hey guys i have edit text in my application

User can type any of the special characters like @#$%^&* and obviously make smileys

I have to post this message to server by appending the messsage in url

but i have exp that # and & are not recognised

Thanks in advance


Solution

  • you can use URLEncoder to encode your string before attaching to the url.