title: how to ignore special characters while reading file using open?
body: <p>I am trying to read file using with open in python, File has below characters I just nee space instead of that binary characters. I tried with encoding &quot;utf-8&quot; and &quot;utf-8-sig&quot;, but no use. can u please help me out.</p>
  <pre><code>with open(&quot;/dbfs&quot;+input_file, &quot;r&quot;, encoding='utf-8-sig') as f1
  </code></pre>
  <p><a href="https://i.stack.imgur.com/E7AKl.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/E7AKl.png" alt="enter image description here" /></a></p>
  <p>EG:
  orginal text:</p>
  <p><a href="https://i.stack.imgur.com/I7wk6.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/I7wk6.png" alt="enter image description here" /></a></p>
  <p>Expected:</p>
  <p><a href="https://i.stack.imgur.com/PJ8sU.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/PJ8sU.png" alt="enter image description here" /></a></p>