title: Open .prn file that includes image with right Encoding using c#
body: <p>I need to open a .prn file and replace some strings.</p>
  
  <p>In the .prn file I included an image, that has a string like this:
  <a href="https://i.stack.imgur.com/Ija9k.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Ija9k.png" alt="enter image description here"></a></p>
  
  <p>When I open the .prn file, C# is not able to read the string as it is.</p>
  
  <p>Probably, it misses some encoding, but not sure which one.</p>
  
  <p>I tried different encodings, but without success.</p>
  
  <p>Here is the code that opens the file in read mode:</p>
  
  <pre><code>string text = File.ReadAllText(root + @"testImage.prn");
  </code></pre>
  
  <p>c# reads that string in this way</p>
  
  <p><a href="https://i.stack.imgur.com/S3Jwl.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/S3Jwl.png" alt="enter image description here"></a></p>
  
  <p>and i'm not able to print the file with the image included.</p>
  
  <p>Thanks in advance for your help.</p>