Force encoding while reading files in init scripts 28/125028/2
authorandre.schmid <andre.schmid@est.tech>
Fri, 15 Oct 2021 14:07:41 +0000 (15:07 +0100)
committerMichael Morris <michael.morris@est.tech>
Mon, 18 Oct 2021 12:13:06 +0000 (12:13 +0000)
commit005d5dee8be436246276195067c67ce68d68c2d7
treecee8448bd71fa24a17f724de46ea84ea6e7840cc
parent1b61e72f6506de7c1f64098dd25adf7af7b31dc1
Force encoding while reading files in init scripts

To avoid system dependency by using the default encoding,
this change sets the encoding when opening files in python
scripts to "UTF-8".

Change-Id: Ib35f4300f10dea309fcc2967448bd80cad0b335f
Issue-ID: SDC-3761
Signed-off-by: André Schmid <andre.schmid@est.tech>
catalog-be/src/main/resources/scripts/sdcBePy/common/normative/toscaElements.py
catalog-be/src/main/resources/scripts/sdcBePy/common/normative/toscaTypes.py
catalog-be/src/main/resources/scripts/sdcBePy/tosca/main.py
catalog-be/src/main/resources/scripts/sdcBePy/tosca/models/model_import_manager.py
catalog-be/src/main/resources/scripts/sdcBePy/tosca/models/normativeToUpdateList.py
catalog-be/src/main/resources/scripts/sdcBePy/users/run.py