title: Detecting → Symbol in Python
body: <p>I'm working on a script using Python 3.6.0 to convert output from a meter to an xlsx file. At the end of the input file is a → symbol that signifies the end of the file.</p>
  
  <p>I want to specifically skip the current line when I detect the → symbol. (It is possible for me to append multiple files together before I convert them and therefore have multiple → symbols denoting the ends of the original files.)</p>
  
  <p>Notepad++ detects the formatting as <s>UTF-8</s> ANSI , but I can't get the if statement in my Python code to detect the arrow. The → also shows itself plainly in plain old Notepad.</p>
  
  <p>My most recent iteration was this attempt:</p>
  
  <pre><code>elif '\u+2192' in line:
  </code></pre>
  
  <p>which fails to detect the right arrow. The same thing happens attempting it this way:</p>
  
  <pre><code>elif '→' in line:
  </code></pre>
  
  <p>How can I detect this one character?</p>
  
  <p>EDIT: Incase it matters, the file I'm reading in is a .log file.</p>
  
  <p>EDIT: More code/data to help troubleshoot.</p>
  
  <p>Here is a snippet at the end of my log file:</p>
  
  <pre><code>TIM= 15:24:47
  TODAY -0.0687869 m3
  →
  </code></pre>
  
  <p>***Note: When I copy and paste the text from Notepad it does not paste the arrow.</p>
  
  <p>Here is how I'm reading through the lines of the file:</p>
  
  <pre><code>with open(datafile, 'r') as df:
      for line in df: 
  </code></pre>