I am trying to create a link that opens the New issue
page on Github filling it with existing knowledge of the problem.
In order to do so, i am using the query parameters like followed:
https://github.com/User/Repository/issues/new?title=Some text&body=More Text
That works fine, however i am trying to format the document using Markdown and all symbols are being escaped after creating a new URL
by calling
URL url = new URL("https://github.com/User/Repository/issues/new?title=Some text&body=# Header # Another header");
The result will be this:
https://github.com/User/Repository/issues/new?title=Some text&body=# Header %23 Another header
the second #
is being escaped, but the first isn't and i don't quite understand why.
Any ideas?