title: Getting empty response when returning JSON data using jsonModel on Doctrine result - Special characters encoding issue
body: <p>I am having problems getting ZF2 jsonModel to return multi result from doctrine query.
  The issue appears only when I try to return the array result and not when returning individual items
  my code is as below:</p>
  
  <pre><code>public function mosquesAction() {
  
      $em = $this
              -&gt;getServiceLocator()
              -&gt;get('Doctrine\ORM\EntityManager');
      $dql = "select m.name from \Application\Entity\Mosque m ";
      $result = $em-&gt;createQuery($dql)-&gt;getResult();
  
      return new JsonModel($result);   
  }
  </code></pre>
  
  <p>the Mosque Entity is:</p>
  
  <pre><code>namespace Application\Entity;
  
  use Doctrine\ORM\Mapping as ORM;
  
  /** @ORM\Entity */
  class Mosque {
  
  /**
   * @ORM\Id
   * @ORM\GeneratedValue(strategy="AUTO")
   * @ORM\Column(type="integer")
   */
  private $id;
  
  /** @ORM\Column(type="string") */
  private $name;
  
  /** @ORM\Column(type="string") */
  private $address;
  
  /** @ORM\Column(type="string") */
  private $email;
  
  /** @ORM\Column(type="string") */
  private $website;
  
  /** @ORM\Column(type="string") */
  private $phone;
  
  /** @ORM\Column(type="string") */
  private $mobile;
  
  /** @ORM\Column(type="string") */
  private $fax;
  
  /** @ORM\Column(type="string") */
  private $coordinates;
  
  /** @ORM\ManyToOne(targetEntity="Canton", inversedBy="mosques") */
  private $canton;
  
  public function getId() {
      return $this-&gt;id;
  }
  
  public function getName() {
      return $this-&gt;name;
  }
  
  public function setName($name) {
      $this-&gt;name = $name;
  }
  
  }
  </code></pre>
  
  <p>when I change the return value to</p>
  
  <pre><code>return new JsonModel($result[0])
  </code></pre>
  
  <p>I get the result</p>
  
  <blockquote>
    <p>{"name":"IDTV - Mimar Sinan Camii"}</p>
  </blockquote>
  
  <h1>EDIT:</h1>
  
  <p>I think I found the origin of the issue, there is no problem with code I posted but it appears that JsonModel can't handle special characters like in</p>
  
  <blockquote>
    <p>Islamische König Faysal Stiftung</p>
  </blockquote>
  
  <p>So my question now is, how to encode these characters in JsonModel on php5.3?</p>
  
  <p>Thank you in advance and sorry for my poor English</p>