title: UTF-8 encoding problem when merging txt files in Powershell
body: <p>I need to merge all txt-files in a certain folder on my computer. There's hundreds of them and they all have a different name, so any code where you had to manually type the name of the files in order to merge them was not working for me. The files are in "UTF-8"-encoding and contain emojis and characters from different languages (such as Cyrillic script) as well as characters with accents and so on (e.g. é, ü, à...). 
  A fellow stackoverflow-user was so kind as to give me the following code to run in Powershell:</p>
  
  <pre><code>(gc *.txt) | out-file newfile.txt -encoding utf8
  </code></pre>
  
  <p>It works wonderfully for merging the files. 
  However, it actually gives me a txt-file with "UTF-8 with BOM"-encoding, instead of with "UTF-8"-encoding. Furthermore, all emojis and special characters have been removed and exchanged for others, such as "Ã¼" instead of "ü". It is very importatnt for what I am doing that these emojis and special characters remain.</p>
  
  <p>Could someone help me with tweaking this code (or suggesting a different one) so it gives me a merged txt-file with "UTF-8"-encoding that still contains all of the special characters? Please keep in mind that I am a layperson. </p>
  
  <p>Thank you so much in advance for your help and kind regards!</p>