Warning 1: Recode from CP437 to UTF-8 failed with the error: "Invalid argument".

# CPL_ZIP_ENCODING 
if 'CPL_ZIP_ENCODING' not in os.environ: 
     # Prevents "Warning 1: Recode from CP437 to UTF-8 failed with the error: "Invalid argument"." 
     # during gdal.Open(). 
     os.environ['CPL_ZIP_ENCODING'] = 'UTF-8' 

 

posted on 2021-03-18 09:13  闹不机米  阅读(375)  评论(0编辑  收藏  举报

导航