The Mobile Galaxy The New Mobile Era Has Come | Mobile – A Time To Remember

26Jun/130

Python check asian language

IDEOGRAPHIC_SPACE = 0×3000

def is_asian(char):
    """
    Is the character Asian?

    >>> is_asian(u'a')
    False
    >>> is_asian(u'日')
    True
    """

    return ord(char) > IDEOGRAPHIC_SPACE
Share
Filed under: iPhone Leave a comment
Comments (0) Trackbacks (0)

No comments yet.


Leave a comment


*

No trackbacks yet.