def _calculateEncodingKey(comparator):
    encodingName = None
    for k, v in _encodings.viewitems():
        if v == comparator:
            encodingName = k
            break
    return encodingName
Gets the first key of all available encodings where the corresponding
dataset/ETHPy150Open datalyze-solutions/pandas-qt/pandasqt/views/CSVDialogs.py/_calculateEncodingKey