def ascii_validator(value):

    try:
        value.encode('ascii')
    except UnicodeEncodeError:
        raise forms.ValidationError(u'Repository name should be in English characters.')
Checks to see if the given name is in "ASCII" format.
dataset/ETHPy150Open Djacket/djacket/core/backend/repository/forms.py/ascii_validator