(self)
return "latin-1"
Return the current selected encoding.
Return the current selected encoding.
Return the current selected encoding .
def encoding(self):
        # type: () -> str
        """
        Return the current selected encoding.
        """
        index = self.encoding_cb.currentIndex()
        if index >= 0:
            data = self.encoding_cb.itemData(index, Qt.UserRole)
            if isinstance(data, str):
                return data
        return "latin-1"
def encoding ( self ) : # type: () -> str index = self . encoding_cb . currentIndex ( ) if index >= 0 : data = self . encoding_cb . itemData ( index , Qt . UserRole ) if isinstance ( data , str ) : return data return "latin-1"