Answer the question
In order to leave comments, you need to log in
Insert object into object in Javascript?
Please tell me how to insert one object
var author = {
name: 'Name',
surneme: 'Surname'
}
var mainObject = {
title: ''
};
var mainObject = {
title: '',
author: {
name: 'Name',
surneme: 'Surname'
}
};
Answer the question
In order to leave comments, you need to log in
So the site returns data to you in windows-1251 encoding, so you either use it yourself, or do iconv after receiving a response. I just checked it through the console at http://huifikator.ru/api.php?text=hello , the response encoding is windows-1251
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question