I need to encode a url that contains a dot character ".". It's a ASP.NET MVC routing, but the url contains a ".". Is there a way?
For example, I'm trying to get this url: "/Products/Beverages/Drink.Best/Teste"
There's a "." in that... And I need to encode that... is it possible?
Thanks!
It is not possible.
A space is assigned number 32, which is 20 in hexadecimal. When you see “%20,” it represents a space in an encoded URL, for example, http://www.example.com/products%20and%20services.html.
You can test your encoding output with the URLEncoder at FooBabel - URLCodec
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