def checkLatinNames(df):
    """Pass the pandas object and check studentNames encode to Latin-1.

    Print out a warning message for any that are not.
    """
    problems = []
    for index, row in df.iterrows():
        try:
            tmp = row['studentName'].encode('Latin-1')
        except UnicodeEncodeError:
            problems.append('row {}, number {}, name: "{}"'.format(index,
                row['id'], row['studentName']))
    if len(problems) > 0:
        print(
            'WARNING: The following ID/name pairs contain non-Latin characters:'
            )
        for X in problems:
            print(X)
        return False
    else:
        return True
