Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Encode URL with dot

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!

like image 400
André Miranda Avatar asked Feb 25 '11 20:02

André Miranda


People also ask

Can we pass dot in URL?

It is not possible.

What does %20 in a URL mean?

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.


1 Answers

You can test your encoding output with the URLEncoder at FooBabel - URLCodec

like image 86
Bobby Whitman Avatar answered Oct 20 '22 02:10

Bobby Whitman