title: url-Encode vs Base64 encoding ( usages)?
body: <p>I was wondering...</p>
  
  <p><em>(except the issue with the base64's plus'+' sign in query string  - which is translated to 'space' and can be solved by %2b)</em> :---> which is the preferred way to transfer data in query string?</p>
  
  <p>Both functions can be used through the JS commands: </p>
  
  <ul>
  <li><code>btoa</code></li>
  <li><code>encodeUriComponent</code></li>
  </ul>
  
  <p>so im asking myself(and you) : </p>
  
  <p><strong>when</strong> should I use <strong>what</strong> ? ( ive always used  <code>encodeUriCompoonent</code> - by instinct).</p>
  
  <p>the problem that the definitions are different - but the implementations can be similar...</p>
  
  <h2>edit</h2>
  
  <p>I think ive found the reason for asking.... ( and why nobody asked it before)</p>
  
  <p><img src="https://i.stack.imgur.com/YBXvC.jpg" alt="enter image description here"></p>