def get_encoding_info():
    'Return a dictionary with various encoding/locale information'
    import sys, locale
    from collections import OrderedDict
    return OrderedDict([('default', sys.getdefaultencoding()), ('filesystem', sys.getfilesystemencoding()), ('locale.prefered', locale.getpreferredencoding())])
Return a dictionary with various encoding/locale information
def get_encoding_info():
    
    import sys, locale
    from collections import OrderedDict
    return OrderedDict([('default', sys.getdefaultencoding()), ('filesystem', sys.getfilesystemencoding()), ('locale.prefered', locale.getpreferredencoding())])