Share this page 

Encode a URLTag(s): Language


escape() encodes most of the stuff you need to encode. It misses single and double quotes, so you should replace those manually.
function URLencode(sStr) {
    return escape(sStr)
       .replace(/\+/g, '%2B')
          .replace(/\"/g,'%22')
             .replace(/\'/g, '%27');
  }

Encode the following URL : www.google.com/search?q=Real's HowTo