diff --git a/rotary_phone_web.py b/rotary_phone_web.py index 34c312c..e0b030a 100644 --- a/rotary_phone_web.py +++ b/rotary_phone_web.py @@ -151,7 +151,7 @@ BACKUP_ON_WRITE = BACKUP_CONFIG.get('backup_on_write', True) WEB_PORT = SYS_CONFIG['web']['port'] # Template version - increment this when HTML template changes -TEMPLATE_VERSION = "1.9.0" # Updated: Added system shutdown/restart controls +TEMPLATE_VERSION = "1.9.1" # Updated: Fixed UTF-8 encoding for JavaScript special characters # Flask app app = Flask(__name__) @@ -1341,7 +1341,7 @@ def main(): else: print(f"Creating new template at {template_file}") - with open(template_file, 'w') as f: + with open(template_file, 'w', encoding='utf-8') as f: # Write version comment first, then the rest of the template f.write(f'\n') f.write('''