$.ajax({ type: \"POST\", url: baseURL+\"sys/formTipi_azioni\",data:\"az_tipo=\"+azione, beforeSend: function(){$(\"#form\").html(\'
azione = escape(String(azione));
should be
azione = encodeURIComponent(String(azione));
or simply
azione = encodeURIComponent(azione);