Created
April 1, 2019 09:22
-
-
Save MohammadSamandari/a809d44ed31e10357f0e0784f8711c8b to your computer and use it in GitHub Desktop.
Learning: Encode String So that they are URL friendly
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// To Encode the text of Edit Text So that cities with space are converted to url type and no error happens: | |
String encodedCityName= URLEncoder.encode(edtCity.getText().toString(),"UTF-8"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment