Skip to content Skip to sidebar Skip to footer

Android Language Parsing Difficulties

In my android app I implemented asynctask to check server responses. It was working fine until the language problem. I am sending user google email id and user name to server for a

Solution 1:

You should be using URLEncoder instead of URLDecoder. Your URL should be encoded, not decoded when accessing web sources.

All other characters are unsafe and are first converted into one or more bytes using some encoding scheme. Then each byte is represented by the 3-character string "%xy", where xy is the two-digit hexadecimal representation of the byte. The recommended encoding scheme to use is UTF-8. However, for compatibility reasons, if an encoding is not specified, then the default encoding of the platform is used.

https://developer.android.com/reference/java/net/URLEncoder.html

Post a Comment for "Android Language Parsing Difficulties"