title: How to convert unusual unicode string with number to integer in python
body: <p>I have some fairly hairy unicode strings with numbers in them that I'd like to test the value of.  Normally, I'd just use <code>str.isnumeric</code> to test for whether it could be converted via <code>int()</code> but I'm encountering cases where <code>isnumeric</code> returns <code>True</code> but <code>int()</code> raises an exception.</p>
  
  <p>Here's an example program:</p>
  
  <pre><code>&gt;&gt;&gt; s = '⒍'
  &gt;&gt;&gt; s.isnumeric()
  True
  &gt;&gt;&gt; int(s)
  Traceback (most recent call last):
     File "&lt;stdin&gt;", line 1, in &lt;module&gt;
  ValueError: invalid literal for int() with base 10: '⒍' 
  </code></pre>
  
  <p>Unicode is always full of surprises, so I'm happy to just be robust to this case and use a try/except block to catch unusual numbers.  However, I'd be happier if I could still convert them to integers.  Is there a consistent way to do this?</p>