Controller
app.controller('infoController', ['$scope', function($scope) {
$scope.companies = [
{
name: "日本語",
id: '1',
state: false
},
{
name: "blaa",
id: '2',
state: false
}
];
$scope.showHide = function(c) {
c.state = !c.state;
};
}]);
and this in my html:
<li ng-repeat="company in companies"> <p class="ng-cloak" style="display: inline">{{company.name}}</p>
<a class="showLink" ng-click="showHide(company)" href="">もっと情報</a>
...
however, the company.name is displayed as ???? but any other japanese text is displayed just fine. Can you tell me what is the reason and how to fix it? I have included UTF8 in my html file.