Posted By

iusik on 10/08/10


Tagged

urlencode


Versions (?)

urlencode for Cyrillic


 / Published in: JavaScript
 

  1. function urlencode( str ) {
  2. var ret = str;
  3. ret = ret.toString();
  4. ret = encodeURIComponent(ret);
  5. ret = ret.replace(/%20/g, '+');
  6. return ret;
  7. }

Report this snippet  

You need to login to post a comment.