def hex_encoding(t):
    """Hex encoding method.

    This is one of the RFC compliant ways for encoding a URL.  It is also the
    simplest method of encoding a URL. The encoding method consists of
    escaping a hexadecimal byte value for the encoded character with a '%'

    >>> hex_encoding("A")
    '%41'
    >>> hex_encoding("ABC")
    '%41%42%43'
    """
    return "%" + "%".join(hex(ord(c))[2:] for c in t)