0

As we know, URL is encoded before it is sent. link

However, why is it encoded when it's copied to the clipboard? I've been Googling it, but it's all about how to convert it. There's no post on why.

  • Example
https://velog.io/@njh7799/뷰-공부-링크들

if I copy this link(ctrl + C) and paste it(ctrl + V) to the other page or note, it becomes

https://velog.io/@njh7799/%EB%B7%B0-%EA%B3%B5%EB%B6%80-%EB%A7%81%ED%81%AC%EB%93%A4

dd

+ I saw this question. However answers of this post says how to bypass, not why this happens.

Jeong Ho Nam
  • 803
  • 12
  • 20
  • Copied how from where exactly…?! – deceze Aug 13 '20 at 09:15
  • @deceze Sorry for clarity. I've added a example – Jeong Ho Nam Aug 13 '20 at 10:23
  • 1
    Still, copy *from where*? From your browser's address bar? Because the address bar is rendering *some* encoded characters as readable characters for usability, but the *actual* URL must be encoded. When you copy it, you get the actual, validly encoded URL. – deceze Aug 13 '20 at 10:25
  • Yes from the browser's address bar. The question is, why does it gives *actual URL* not the unencoded URL? As it shows readable characters on address bar for usability, it would be nice if it gives readable characters when copy it. Well, I have nothing to say if Chrome set it up like that, but why would them make it uncomfortable? I'm curious about that. – Jeong Ho Nam Aug 13 '20 at 10:36
  • 1
    If you want to copy the URL, presumably you want a *valid* URL. An unencoded URL is not valid. – deceze Aug 13 '20 at 11:02
  • It's the character set for the application that you are pasting it into that is the limiting factor – Glenn Ferrie Aug 13 '20 at 13:27
  • 1
    @Glenn It's not. – deceze Aug 13 '20 at 13:28

0 Answers0