title: Problem in special character reading from file in python
body: <p>I am having a problem in file reading in python. I have a file that has some Unicode characters like below.</p>
  
  <p><strong>Test_data.txt :</strong></p>
  
  <pre><code>ý[þ»¢5åÆ¢Nde¼Èó!`Å6^
  </code></pre>
  
  <p>But when I am trying to read the file some extra characters get appended with the text like below.</p>
  
  <pre><code>ý[þ»¢5\x1få\x8fÆ\x0f¢Nde¼Èó!\x0c`Å6\x1d\x1a^
  </code></pre>
  
  <p><strong>My code is below:</strong></p>
  
  <pre><code>main_data_full = []
  main_file = open("Test_data.txt", "r", encoding = 'utf-8') 
  
  main_data = []
  for line in main_file:
      main_data_full.extend(line.split("\n"))
  
  print(main_data_full)
  </code></pre>
  
  <p>I don't want to get the extra "\x" type characters in between the text. Can anyone help me to solve the code.</p>