I think I am lacking in the correct vocabulary to be able to state this question correctly. But I have searched everything I can think of, including "javascript object ascii", "javascript object to unicode", but the answer I'm looking for just won't show.
My problem is that I have a JavaScript object that looks like this:
{
Book: 'Teacup',
Type: 'Secondary',
Name: 'Bió',
Age: '257',
Race: 'Dwarf',
Gender: 'Male'
}
and when I print it out using the following function:
for (var prop in item) { // item is my object
var lineItem = $('<td/>');
lineItem.text(item[prop]);
lineItems.push(lineItem);
};
it looks like this: Teacup Secondary Bió 257 Dwarf Male
How do I fix it?
