title: How to fix replacement character (�) when I want to print cyrillic symbols from file?
body: <p>When I'm reading lines from file I'm trying to print some strings which contain english and russian words. I'm getting replacement characters (�����) instead cyrillic symbols in my console. If I'm trying to return an array of lines I'm getting same trouble. </p>
  
  <p>A plain line looks like:</p>
  
  <blockquote>
    <p>URL:       GET       /products/1234<br>
    Message: [transaction ID: 324] Отправка Get запроса: <a href="http://...//" rel="nofollow noreferrer">http://...//</a></p>
    
    <p>URL:       POST       /products/1234<br>
    Message: [transaction ID: 324] Отправка Post запроса: <a href="http://...//" rel="nofollow noreferrer">http://...//</a></p>
  </blockquote>
  
  <p>Console prints:</p>
  
  <blockquote>
    <p>URL:       GET       /products/1234<br>
    Message: [transaction ID: 324] ���������������: <a href="http://...//" rel="nofollow noreferrer">http://...//</a></p>
    
    <p>URL:       POST       /products/1234<br>
    Message: [transaction ID: 324] ���������������: <a href="http://...//" rel="nofollow noreferrer">http://...//</a></p>
  </blockquote>
  
  <p>The same is written to the array(� instead lines with cyrillic chars):</p>
  
  <pre><code>[
      "URL:       GET       /products/1234      Message: [transaction ID: 324 ���������������: http://...//",
      "URL:       POST       /products/1234      Message: [transaction ID: 324 ���������������: http://...//",   
  ]
  </code></pre>
  
  <p>How can I fix it? </p>
  
  <pre><code>//function to watch for file's changes:
  function readFileChanges(file) {
          const Tail = require('tail').Tail;
          const tail = new Tail(file);
          let dataLines = [];
          tail.watch();
          tail.on("line", data =&gt; {
              console.log(data);
              dataLines.push(data);
          });
          return dataLines;
      };
  </code></pre>
  
  <p>I expect to get array with lines containing cyrillic chars, not �-s:</p>
  
  <pre><code>[
      "&gt; URL:       GET       /products/1234      Message: [transaction ID: 324] Отправка Get запроса: http://...//",
  
      "&gt; URL:       POST       /products/1234      Message: [transaction ID: 324] Отправка Post запроса: http://...//"
  ]
  </code></pre>
  
  <p>and appropriate console-output.</p>
  
  <p>Platform is win7 and win10, node version is 10.x</p>
  
  <p>Thank you so much in advance!</p>