1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-12-25 16:28:11 +00:00

Fix unicode error when reading ios configuration

Fix #1013
This commit is contained in:
Julien Duponchelle 2017-05-05 19:27:04 +02:00
parent bda36081a9
commit 3070a68273
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8

View File

@ -1556,7 +1556,7 @@ class Router(BaseNode):
try:
startup_config_path = os.path.join(self._working_directory, startup_config)
if os.path.exists(startup_config_path):
with open(startup_config_path) as f:
with open(startup_config_path, encoding="utf-8") as f:
self._startup_config_content = f.read()
else:
self._startup_config_content = ''