title: PHP - Drupal create node utf8 romanian characters
body: <p>I have a cronjob that creates a new node every day. The body value is in Romanian, so the text contains Romanian diacritics. </p>
  
  <p>DB columns are all utf8-general-ci. (both tables: the one I get the data from and drupal's field body table).</p>
  
  <p>I am using this code to create the node:</p>
  
  <pre><code>$new_node = new stdClass();
  $new_node-&gt;type = 'quote_of_the_day';
  node_object_prepare($new_node);
  
  $new_node-&gt;language = 'ro';
  $new_node-&gt;uid = USER_ID;
  
  $new_node-&gt;title = $citat['titlu'];
  $new_node-&gt;body['und'][0]['value'] = $citat['text'];
  
  $new_node-&gt;body['und'][0]['format'] = 'full_html';
  $new_node-&gt;body['und'][0]['safe_value'] = $citat['text'];
  </code></pre>
  
  <p>My problem is that Romanian chars are replaced by some strange chars. See image:</p>
  
  <p><a href="https://i.stack.imgur.com/vcgGn.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/vcgGn.png" alt="Image01"></a></p>
  
  <p>I set multilingual to true on this node type. When I edit a node created by this script, the language is set correctly.</p>
  
  <p>I am using drupal 7.56.</p>
  
  <p>Any idea on how to get the correct into the body and the browser?</p>
  
  <p>Edit:
  I added all the @M0ns1f sayd. The same output.</p>