(value)
return utf8encode(value).encode("hex")
Encodes string value from plain to hex format

    >>> hexencode('foobar')
    '666f6f626172'
Encodes string value from plain to hex format
Encodes string value from plain to hex format
def hexencode(value):
    """
    Encodes string value from plain to hex format

    >>> hexencode('foobar')
    '666f6f626172'
    """

    return utf8encode(value).encode("hex")
def hexencode ( value ) : return utf8encode ( value ) . encode ( "hex" )