@@ -302,7 +302,7 @@ def bmd():
302302 Source: https://metawal.wallonie.be/geonetwork
303303 """
304304 belgian_sample = str (Path (__file__ ).parent .parent / "tests" / "resources" / "iso3_examples" / "metawal.wallonie.be-catchments.xml" )
305- with open (belgian_sample , "r" ) as f_d :
305+ with open (belgian_sample , "r" , encoding = "utf-8" ) as f_d :
306306 xml_list = f_d .readlines ()
307307 xml_str = '' .join (xml_list )
308308 xml_bytes = bytes (xml_str , encoding = 'utf-8' )
@@ -462,7 +462,7 @@ def amd():
462462 Source: https://portal.auscope.org.au/geonetwork
463463 """
464464 aust_sample = str (Path (__file__ ).parent .parent / "tests" / "resources" / "iso3_examples" / "auscope-3d-model.xml" )
465- with open (aust_sample , "r" ) as f_d :
465+ with open (aust_sample , "r" , encoding = "utf-8" ) as f_d :
466466 xml_list = f_d .readlines ()
467467 xml_str = '' .join (xml_list )
468468 xml_bytes = bytes (xml_str , encoding = 'utf-8' )
@@ -518,7 +518,7 @@ def smd():
518518 Source: https://metawal.wallonie.be/geonetwork
519519 """
520520 belgian_srv_sample = str (Path (__file__ ).parent .parent / "tests" / "resources" / "iso3_examples" / "metawal.wallonie.be-srv.xml" )
521- with open (belgian_srv_sample , "r" ) as f_d :
521+ with open (belgian_srv_sample , "r" , encoding = "utf-8" ) as f_d :
522522 xml_list = f_d .readlines ()
523523 xml_str = '' .join (xml_list )
524524 xml_bytes = bytes (xml_str , encoding = 'utf-8' )
@@ -554,7 +554,7 @@ def emd():
554554 Source: https://github.com/Esri/arcgis-pro-metadata-toolkit
555555 """
556556 arcgis_sample = str (Path (__file__ ).parent .parent / "tests" / "resources" / "iso3_examples" / "arcgis-sample.xml" )
557- with open (arcgis_sample , "r" ) as f_d :
557+ with open (arcgis_sample , "r" , encoding = "utf-8" ) as f_d :
558558 xml_list = f_d .readlines ()
559559 xml_str = '' .join (xml_list )
560560 xml_bytes = bytes (xml_str , encoding = 'utf-8' )
0 commit comments