def _try_decode_dict(self, content):
        """Decode content of a dictionary.

        :param dict content:
        :return:
        """
        result = dict()
        for key, value in content.items():
            key = try_utf8_decode(key)
            if isinstance(value, dict):
                result[key] = self._try_decode_dict(value)
            elif isinstance(value, list):
                result[key] = self._try_decode_list(value)
            elif isinstance(value, tuple):
                result[key] = self._try_decode_tuple(value)
            else:
                result[key] = try_utf8_decode(value)
        return result
def _try_decode_dict ( self , content ) : result = dict ( ) for key , value in content . items ( ) : key = try_utf8_decode ( key ) if isinstance ( value , dict ) : result [ key ] = self . _try_decode_dict ( value ) elif isinstance ( value , list ) : result [ key ] = self . _try_decode_list ( value ) elif isinstance ( value , tuple ) : result [ key ] = self . _try_decode_tuple ( value ) else : result [ key ] = try_utf8_decode ( value ) return result
Decode content of a dictionary.

        :param dict content:
        :return: