Angular Js How to encode and decode special characters in response result?
<p>I am working on to save data and user can enter data with special character also.I have encode the name string when saving data but in response json array is coming. How we can decode the data again when get the response.</p>

<p>Js to save the data with encoded string.</p>

<pre><code>$scope.saveData = function(){

        $scope.loading = true;
        $scope.Name = encodeURI(this.group.name); 
        $scope.Name1 = encodeURIComponent($scope.groupName);
        $scope.groupData = 'Name='+$scope.Name1+'&amp;Users='+$scope.UserID.join();
        DataService.createUsers($scope.groupData).success(function (data) {

        }).catch(function (err) { 

        })
        .finally(function () {

        });
    }
</code></pre>

<p>Js to get the data of users in controller.</p>

<pre><code>localStorageService.set('users', grps.allUsers);
localStorageService.bind($scope, 'users');  

function getMyUsers(){
    DataService.getMyUsers().then(function successCallback(response) 
    {

        $scope.users.length = 0; 
        $scope.users.push({'data': response.data.results});

    },function errorCallback(response) {

        console.log(response);

    });  
}

&lt;ul&gt;
 &lt;li ng-repeat="user in users[0].data track by $index"&gt; 
&lt;div class="list_left"&gt;
    &lt;div class="pro_text"&gt;  
        &lt;h2 class="group_title"&gt;&lt;a href="javascript:;"&gt;{{ usr.Name }}&lt;/a&gt;&lt;/h2&gt; 

        &lt;p class=""&gt;&lt;/p&gt;
        &lt;span&gt;Created By: {{ user.createdBy.ownerName }} {{ user.createdBy.lastName }}&lt;/span&gt; 
    &lt;/div&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;   
</code></pre>