Below is the code to create a zip file and to add files to it.
Problem: Currently, when the zip file is created, the files present in it contains
%20
instead ofspace
which is one functionality.I have another requirement to replace%20
withspace
. How to achieve this in below code.
Removed the code from the post.
Here is an example using the Uri
static class:
var url = "http://www.somewhere.net/Thingy%20World.html";
var decoded = Uri.UnescapeDataString(url);
//decoded is currently 'http://www.somewhere.net/Thingy World.html'
var encoded = Uri.EscapeUriString(decoded);//back to encoded
//encoded is currently 'http://www.somewhere.net/Thingy%20World.html'
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With