PDA

View Full Version : Unicode utf-8 در json



soroush10
سه شنبه 07 اسفند 1397, 23:01 عصر
سلام و درود.

چطور میتونم string که توسط json به صورت زیر ارسال میکنم و unicode utf-8 کنم؟

function(event){
Var message=json.parse(event.data)

Tekyegah
چهارشنبه 08 اسفند 1397, 13:30 عصر
$.ajax({
type: "POST",
url: "Engine_Experts/Info",
data: '',
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function (response) {
alert(response.d);
},
error: function (response) {
alert(response.d);
}
});