(value)
return value.decode('utf-8')
Converts a string argument to a unicode string.

    If the argument is already a unicode string, it is returned
    unchanged.  Otherwise it must be a byte string and is decoded as utf8.
Converts a string argument to a unicode string.
Converts a string argument to a unicode string .
def to_unicode(value):
    """Converts a string argument to a unicode string.

    If the argument is already a unicode string, it is returned
    unchanged.  Otherwise it must be a byte string and is decoded as utf8.
    """
    if isinstance(value, unicode_type):
        return value

    return value.decode('utf-8')
def to_unicode ( value ) : if isinstance ( value , unicode_type ) : return value return value . decode ( 'utf-8' )