def show_file_encoding(p):
    """
    Show the encoding of the file.
    :param p: path to the file
    :type p: str
    """
    enc = get_encoding_of_file(p)
    if enc is None:
        encs = "---"
    else:
        encs = enc
    print("{fn:20} {enc}".format(fn=os.path.relpath(p), enc=encs))

    Show the encoding of the file.
    :param p: path to the file
    :type p: str
    
tools/encoding_utils.py