title: Powershell replacing Unicode characters like "çöşİğü"
body: <p>total coding noob here, trying to fix my script to help my job.</p>
  <p>Basically, I want to add &quot;*&quot; after &quot;ç, ö, İ, ş, ü, , ı&quot; Turkish letters in a text file.</p>
  <p>A quick example:
  &quot;Andaç&quot; should be replaced with &quot;Andaç*&quot; (It can be &quot;Andac*&quot; too, doesn't matter. I just need to mark the letter with * or # or @, or even &quot;XXX&quot;, whatever!)</p>
  <p>A powershell script that I execute via .bat file below works for Latin characters:</p>
  <pre><code>powershell -Command &quot;(gc test.txt -Raw) -creplace 'a', ('a*') | Out-File test2.txt
  </code></pre>
  <p>It successfully changes &quot;a&quot; with &quot;a*&quot;</p>
  <p>But when I use &quot;ç&quot; instead of &quot;a&quot;, the output is &quot;<strong>Ã§</strong>&quot; when I run it. Or just &quot;<strong>ç</strong>&quot; with other encodings. It basically ignores &quot;-creplace&quot; command for that special character and does nothing.</p>
  <p>How can I achieve this?</p>
  <p><strong>Long story if this will help:</strong></p>
  <p>I use this to detect missing punctuation marks in a text file.</p>
  <p>For example, test.txt contains this:</p>
  <pre><code>First sentence.
  
  Second sentence
  
  Third sentence.
  </code></pre>
  <p>To mark the missing dot in &quot;Second sentence&quot;, I use the command below:</p>
  <pre><code>-creplace 'e\r\n\', ('e*'+$([Environment]::NewLine))
  </code></pre>
  <p>and the output (test2.txt) becomes this:</p>
  <pre><code>First sentence.
  
  Second sentence*
  
  Third sentence.
  </code></pre>
  <p>So I repeat this code for each letter from a to z. But it changes nothing when it is that specific Turkish letters.</p>