Answer the question
In order to leave comments, you need to log in
How to deal with strange characters in ajax request response?
1 . Server response to the usual:
xhr.open ('POST', 'confirm.php' );
xhr.setRequestHeader ('Content-type', 'text/plain');
xhr.send ( ... );
vm.contractData.contractId = xhr.responseText.replace( /\S/, '' );
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question