title: How to convert accented string to unaccented string in english in python without converting any other language character?
body: <p>What I want is to convert accented characters into english and if there is some other language present then it should give blank.I have tried certain codes like below but its converting even the other langagues to english below or removing them.What should I do?</p>
  <pre><code>def check1(email):
  try:
      email = unicode(email, 'utf-8')
  except (TypeError, NameError): # unicode is a default on python 3 
      pass
  email = unicodedata.normalize('NFD', email)
  email = email.encode('ascii', 'ignore')
  email = email.decode(&quot;utf-8&quot;)
  return email.upper()
  
  check1(&quot;as平仮平ÇÈÈ.a@yah.comÈ&quot;)
  ASCEE.A@YAH.COME
  
  def acc(a):
  outputString = unidecode.unidecode(a)
  return outputString.upper()
  
  acc(&quot;as平仮平ÇÈÈ.a@yah.comÈ&quot;)
  ASPING JIA PING CEE.A@YAH.COME
  </code></pre>
  <p>The output I am expecting for</p>
  <pre><code>acc(&quot;as平仮平ÇÈÈ.a@yah.comÈ&quot;)
  </code></pre>
  <p>is this
  <code>(&quot;AS平仮平CEE.A@YAH.COME&quot;)</code> .</p>