def check_badchar(file):
    """Check NON-ASCII characters for a file.

    :param file: Path to file to check
    :return: Resulting error messages
    :rtype: list
    """
    error = []
    line_num = 1
    with open(file, 'r') as f:
        for line in f:
            if not line.isascii():
                char_count = 0
                badchars = []
                for char in line:
                    if not char.isascii():
                        badchars.append(char_count)
                    char_count += 1

                error.append(f"NON-ASCII character(s) in line {line_num}:")
                error.append(f"{line.rstrip()}")
                badchar_line = " "*len(line.rstrip())
                for badchar in badchars:
                    badchar_line = badchar_line[:badchar] + "^" + badchar_line[badchar + 1:]
                error.append(badchar_line)
            line_num += 1

    return error