title: How to fix my text going "?" when i print with str_split()
body: <p>I'm trying to split text in my web. I have this word ""
  and it became "?" in my web</p>
  
  <p>The first i try to just print "" without any php function process and it can show "" and not became "?"</p>
  
  <p>so i try to use <code>str_split</code> &amp; <code>print_r</code> and it became "?" at all</p>
  
  <pre><code>&lt;?php
  header('content-type: text/html; charset=utf-8');
  //error_reporting(E_ALL ^ ( E_NOTICE | E_WARNING ));
  $letter='';
  ?&gt;
  &lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
      &lt;title&gt;memek&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;form method="POST"&gt;
      &lt;input type="hidden" name="submit" id="submit" value="let"&gt;
      &lt;textarea name='input' value="" placeholder="put text here" cols="50" rows="10"&gt;&lt;/textarea&gt;&lt;br&gt;
      &lt;button type="submit" value="start"&gt;Start&lt;/button&gt;
  &lt;/form&gt;
  &lt;?php
      function katanya($kata){
          return str_split($kata);
      }
  if (isset($_POST['submit']) == 'let') {
      $letter = $_POST['input'];
      $letter = katanya($letter); 
  }
  ?&gt;
  &lt;textarea name="result" placeholder="result goes here"cols="50" rows="10"&gt;&lt;?php print_r($letter); ?&gt;&lt;/textarea&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>I want it not to became "?" but can show the original splitted text</p>
  
  <p>edit:
  solved this case with this solution
  <a href="https://gist.github.com/ondrejmirtes/2780075?fbclid=IwAR3DDu-bn8HrowpRcGqEt02TB4iRbWWi4TLpByvR7WvSIX7rygmsbj69WJg" rel="nofollow noreferrer">https://gist.github.com/ondrejmirtes/2780075?fbclid=IwAR3DDu-bn8HrowpRcGqEt02TB4iRbWWi4TLpByvR7WvSIX7rygmsbj69WJg</a></p>