I am using the apache poi package to generate excel workbooks. In the workbook I include cells with hyperlinks, using URLs containing fragments (#frag). In the resulting cells, the # character in the url has been encoded which makes it a different URL.
My question: Is there any way to preserve the URL provided as is?
Cell cell = row.createCell(index); cell.setCellValue("the link"); HSSFHyperlink link = workbook.getCreationHelper().createHyperlink(HSSFHyperlink.LINK_URL); link.setAddress("http://localhost:3000/#/search/pattern"); cell.setHyperlink(link);
The url opened in the browser after clicking on the link in the generated spreadsheet
Any pointer appreciated.
I have a uri like
And i use
org.apache.http.client.utils.URLEncodedUtilsparse(URI uri, String encoding)
to get a list of NameValuePairs, and it works nicely. But now I have need also the possibility to parse Chinese charecters, e.g.:
But URLEncodedUtilsparse fails to parse these characters correctly. How can I retrieve them and get a list of NameValuePairs again?
I have a NSString like this:
but I want to transform it to:
How can I do this?
I'm facing an issue trying to sharing an URL which includes arabic characters on Twitter:
When i click on "share" the same URL is showed in the tweet box, but when I actually tweet, it just links to
http://example.com, and the rest of the URL is lost.
I tried using
urlencode(), but the generated URL is too long and impossible tweet. How could I solve this?
Does anyone know of any good C++ code that does this