abhishek
abhishek

Reputation: 1434

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

Upvotes: 0

Views: 725

Answers (1)

xandy
xandy

Reputation: 27421

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

Upvotes: 1

Related Questions