Handle utf8 within URL format strings

[ permalink ] [ download ]
if (encodeURIComponent) {
    title = encodeURIComponent($("#id_title").val());
    descripcion = encodeURIComponent($("#id_description").val());
    tag_list = encodeURIComponent($("#id_tag_list").val());
  } else {
    title = $("#id_title").val();
    descripcion = $("#id_description").val();
    tag_list = $("#id_tag_list").val();
  }
 
// you should use encodeURIComponent() instean of escape()
hits counter