def _encoding(self):
        """Tries to guess the encoding used by the terminal."""
        # Determine from locale settings.
        try:
            return locale.getdefaultlocale()[1] or 'utf8'
        except __HOLE__:
            # Invalid locale environment variable setting. To avoid
            # failing entirely for no good reason, assume UTF-8.
            return 'utf8'
dataset/ETHPy150Open MartinPaulEve/PlotSummary/interactive.py/Interactive._encoding