From 9738a46390695b06e5cc98eb236f3f30578a6031 Mon Sep 17 00:00:00 2001 From: aber-sandag Date: Tue, 29 Oct 2024 10:22:29 -0700 Subject: [PATCH] Fix java unicode error --- src/main/python/pythonGUI/createStudyAndScenario.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/python/pythonGUI/createStudyAndScenario.py b/src/main/python/pythonGUI/createStudyAndScenario.py index e34f3ef36..91d6fc1ee 100644 --- a/src/main/python/pythonGUI/createStudyAndScenario.py +++ b/src/main/python/pythonGUI/createStudyAndScenario.py @@ -347,11 +347,12 @@ def select_study_years(self): #Update properties file def update_property(self, old, new): + new_updated = new.replace(r'\U', r'/U').replace(r'\u', r'/u') property_file = os.path.join(self.scenariopath.get(), 'conf', 'sandag_abm.properties') property_file = property_file.replace('\\\\', '/') with open(property_file, 'r') as file : filedata = file.read() - filedata = filedata.replace(old, new) + filedata = filedata.replace(old, new_updated) with open(property_file, 'w') as file: file.write(filedata)