def is_ascii(string):
    """
    Check for unicode encoded characters by trying to encode the string as ascii only
    """
    try:
        string.encode('ascii')
    except (UnicodeEncodeError, UnicodeDecodeError):
        return False
    else:
        return True