encodeURI, escape, encodeURIComponent, or you can click below link.
URLEncode

Advertisements