def fix_encoding():
 ret = True
 if (sys.platform == 'win32'):
  ret &= fix_win_codec()
 ret &= fix_default_encoding()
 if (sys.platform == 'win32'):
  encoding = sys.getdefaultencoding()
  ret &= fix_win_sys_argv(encoding)
  ret &= fix_win_console(encoding)
 return ret

def fix_encoding ( ) : ret = True if ( sys . platform == 'win32' ) : ret &= fix_win_codec ( ) ret &= fix_default_encoding ( ) if ( sys . platform == 'win32' ) : encoding = sys . getdefaultencoding ( ) ret &= fix_win_sys_argv ( encoding ) ret &= fix_win_console ( encoding ) return ret
fixes various encoding problems on all platforms .