Answer the question
In order to leave comments, you need to log in
Floating error json_encode(): Invalid UTF-8 sequence in argument when passing argument via ajax (Yii2 framework)?
Hello.
Framework Yii2. I pass the argument via Ajax (dataType: json) to the getcn action of the main controller.
I came across a strange error:
$.ajax({
url: '?r=main/getcn&objectclass=' + objectclass,
dataType: "json",
success: function(data) {
$('#test').text(data.result);
}
});
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