Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Copying a UTF-8 URL from browser's address bar, gives only the ugly encoded one

When I copy a UTF-8 URL from the browser's address bar (almost any browser on any os), then try to paste it in another text field (to post it on facebook or twitter for example), it gives only the decoded URL, which makes it ugly. For example, in the address bar, the URL appears like this one:

https://www.chaino.com/وذكر

But when trying to copy and paste it in any other place, it gives the following ugly url:

https://www.chaino.com/%D9%88%D8%B0%D9%83%D8%B1

& if I wanted to get the original URL to use it in any place, I used to decode it in this Raw URL Decoder - Online Tool

Question is: is there a short direct way to copy these kind of URLs, and paste it without this hideous process? (may be using chrome extensions or something)

like image 732
AbdelHady Avatar asked Aug 11 '13 21:08

AbdelHady


People also ask

How do I copy URL without encoding?

No more percent-encoding, no more punycode. Use Alt+U shortcut or click the icon to copy URL from address bar.

Does browsers automatically encode URL?

"Browsers" don't do that. It may happen, that web sites or applications encode URLs this way if they are used in URL parameters: http://www.example.net/?url=http%3A%2F%2Fwww.example.com .

Are URLs in UTF-8?

The UTF-8 locale support addresses this need. Browsers are limited to a defined character set that can legally be used in a uniform resource locator (URL). This range is defined to be the printable characters in the ASCII character set (between hex code 0x20 and 0x7e).

Why does URL get encoded?

Why do we need to encode? URLs can only have certain characters from the standard 128 character ASCII set. Reserved characters that do not belong to this set must be encoded. This means that we need to encode these characters when passing into a URL.


2 Answers

You can add 'space' at the end of URL in address bar, then you can select it all and copy it directly.

like image 65
mementototem Avatar answered Sep 26 '22 06:09

mementototem


You can select URL without selecting scheme (e.g. http://), and copy it. This will give you what you expected.

P.S. The point is to select only part of the link. E.g. you can select whole URL without first character and than add it manually.

like image 45
DanSkeel Avatar answered Sep 26 '22 06:09

DanSkeel