Using non-ASCII character as JavaScript object key
You can use a subscript to reference the object:
> var obj = {
'ア' : 'testing',
'ダ' : '2015-5-15',
'ル' : 123,
'ト' : 'Good'
};
> undefined
> obj['ア']
> "testing"
You should also not that object keys and values in JavaScript objects are separated by :
(colons) not =>
(fat commas)
You can use property accessors:
obj['ト']
Example:
var obj = {
'ア': 'testing',
'ダ': '2015-5-15',
'ル': 123,
'ト': 'Good'
};
console.log(obj['ト']);
> Good
MDN: Property Accessors