Skip to content

Commit

Permalink
Merge pull request #159 from emavro/feature-appstore-server
Browse files Browse the repository at this point in the history
UTF-8 issue fixed [Beat beat it]
  • Loading branch information
beat committed Aug 30, 2013
2 parents 1a38944 + d88805d commit 204556a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion components/com_apps/views/category/view.json.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public function display($tpl = null)
$response['body'] = $this->loadTemplate($tpl);
$response['error'] = false;
$response['message'] = '';
$json = new JResponseJson($response['body'], $response['message'], $response['error']);
$json = new JResponseJson(iconv("UTF-8", "UTF-8//IGNORE", $response['body']), $response['message'], $response['error']);

if ($app->input->get('callback', '', 'cmd')) {
echo $app->input->get('callback') . '(' . $json . ')';
Expand Down
2 changes: 1 addition & 1 deletion components/com_apps/views/dashboard/view.json.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public function display($tpl = null)
$response['body'] = $this->loadTemplate($tpl);
$response['error'] = false;
$response['message'] = '';
$json = new JResponseJson($response['body'], $response['message'], $response['error']);
$json = new JResponseJson(iconv("UTF-8", "UTF-8//IGNORE", $response['body']), $response['message'], $response['error']);

if ($app->input->get('callback', '', 'cmd')) {
echo $app->input->get('callback') . '(' . $json . ')';
Expand Down
2 changes: 1 addition & 1 deletion components/com_apps/views/extension/view.json.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public function display($tpl = null)
$response['body'] = $this->loadTemplate($tpl);
$response['error'] = false;
$response['message'] = '';
$json = new JResponseJson($response['body'], $response['message'], $response['error']);
$json = new JResponseJson(iconv("UTF-8", "UTF-8//IGNORE", $response['body']), $response['message'], $response['error']);

if ($app->input->get('callback', '', 'cmd')) {
echo $app->input->get('callback') . '(' . $json . ')';
Expand Down

0 comments on commit 204556a

Please sign in to comment.