I am sending the following string "Search not found" when sending it without the ú it takes it perfectly, but when it goes with ú I get the following error:
Uncaught DOMException: Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.
The js code is the following:
w._getParameterByName = function (name) {
name = name.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]");
var regex = new RegExp("[\\?&]" + name + "=([^&#]*)"),
results = regex.exec(location.search);
return results === null ? "" : atob(decodeURIComponent(results[1].replace(/\+/g, " ")));
};
I appreciate your help