Real'sHowTo AddThis Feed Button
Custom Search

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


blog comments powered by Disqus


If you find this article useful, consider making a small donation
to show your support for this Web site and its content.

Written and compiled by Réal Gagnon ©1998-2013
[ home ]