def order_check_uni(body):
ccnt=0
for x in body:
if x.isUpper():
ccnt+=1
if ccnt>2:
print 'success'
I try to find char non ASCII or special char or unicode char or cyrillic char like абвгдеёжзийклмнопрстуфхцчшщъыьэюя ®©™
in string body with that script, i try to replace isUpper()
with isascii()
and len(x) == len(x.encode)
, with unichr()
and the other function but still find error, can somebody help me?