title: Why would json_encode return false in this case?
body: <p>I have a function that return a list of cities (and some other data)</p>
  
  <pre><code>//after some logic
  print_r($cities);
  echo json_encode($cities);
  </code></pre>
  
  <p>Result of print_r after retreving one city, in this case Medellín city:</p>
  
  <pre><code>Array ( [0] =&gt; Array ( [id] =&gt; 1 [state_id] =&gt; 2 [name] =&gt; Medellín [propauthor] =&gt; 0 ) )
  </code></pre>
  
  <p>But the <code>json_encode()</code> just returns <code>false</code></p>
  
  <p>EDIT:
  json_last_error () returns <code>JSON_ERROR_UTF8</code>, as you can see cities might have tildes (accents)</p>