def format_results(self, rows):
        if not self.driver_needs_utf8:
            return tuple(rows)
        # FreeTDS (and other ODBC drivers?) doesn't support Unicode
        # yet, so we need to decode utf-8 data coming from the DB
        fr = []
        for row in rows:
            if isinstance(row, str):
                fr.append(row.decode('utf-8'))
            else:
                fr.append(row)
        return tuple(fr)
Decode data coming from the database if needed and convert rows to tuples
dataset/ETHPy150Open avidal/django-pyodbc/sql_server/pyodbc/base.py/CursorWrapper.format_results