title: codecs.ascii_decode(input, self.errors)[0] UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 318: ordinal not in range(128)
body: <p>I am trying to open and readlines a .txt file that contains a large amount of text. Below is my code, i dont know how to solve this problem. Any help would be very appreciated.</p>
  
  <pre><code>file = input("Please enter a .txt file: ")
  myfile = open(file)
  x = myfile.readlines()
  print (x)
  </code></pre>
  
  <p>when i enter the .txt file this is the full error message is displayed below:</p>
  
  <pre><code>line 10, in &lt;module&gt; x = myfile.readlines()
  line 26, in decode return codecs.ascii_decode(input, self.errors)[0]
  UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 318: ordinal not in range(128)
  </code></pre>