Thanks to visit codestin.com
Credit goes to github.com

Skip to content

URL Encode didnt work #691

@igorrmotta

Description

@igorrmotta

I am trying make Http.Get with this URL:
http://enrique.elipse.com.br:8080/api/screen/[New page...]

The function "getUrlWithQueryString" try encoding by the way "hardcoded" and changes url to:
http://enrique.elipse.com.br:8080/api/screen/[New%20page...]

But this didnt work. Throws the exception:
java.lang.IllegalArgumentException: Illegal character in path at index 45

Why dont use "URLEncoder.encode("[New%20page...]", "UTF-8")" ????

This function is pattern of android.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions