title: python read special characters from a file and print them
body: <p>What I'm trying to do is the following:</p>
  
  <p>I have a file with simple html code:</p>
  
  <pre><code>Content-type:text/html\r\n\r\n
  &lt;html&gt;
  &lt;head&gt;
  &lt;meta charset=\"utf-8\"/&gt;
  &lt;title&gt;DNS checker CGI script&lt;/title&gt;
  .
  .
  </code></pre>
  
  <p>I'd like to read this file and print its content with special characters (\n,\r,%...) , so the output would look like this:</p>
  
  <pre><code>Content-type:text/html
  
  
  &lt;html&gt;
  &lt;head&gt;
  &lt;meta charset="utf-8"/&gt;
  </code></pre>
  
  <p><strong>My python code:</strong></p>
  
  <pre><code>#!/usr/bin/python
  
  f = open('/var/www/html/dns-checker/dns_not_correct.txt', 'r')
  print(f.read(), end='')
  </code></pre>
  
  <p>Thanks in advance for your help</p>