This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Go UTF-8

  • Loading branch information...
bergie committed May 8, 2012
1 parent 625e96f commit 96b13c68b67ea893b81c826b79a442d87c4d7255
Showing with 2 additions and 1 deletion.
  1. +2 −1 index.php
View
@@ -5,9 +5,10 @@
$data = array();
$data['from'] = $_GET['urlize'];
$data['to'] = midgardmvc_helper_urlize::string($_GET['urlize']);
- header('Content-type: application/json');
+ header('Content-type: application/json; charset=utf-8');
die(json_encode($data));
}
+header('Content-Type: text/html; charset=utf-8');
?>
<h1>Urlizer service</h1>
<form method="GET">

0 comments on commit 96b13c6

Please sign in to comment.