@@ -262,7 +262,7 @@ def installInputKeys(self) -> int:
262262 r"\[" + keycontext + r"\]\n" ,
263263 r"[" + keycontext + r"]\n" + str (key ) + r"\n" ,
264264 text )
265- with open (data .config .settings + "/input.settings" , 'w' , encoding = "utf-16 " ) as userfile :
265+ with open (data .config .settings + "/input.settings" , 'w' , encoding = "utf-8 " ) as userfile :
266266 text = userfile .write (text )
267267 return added
268268
@@ -278,7 +278,7 @@ def installUserSettings(self) -> int:
278278 config .add_section (setting .context )
279279 config .set (setting .context , setting .option , setting .value )
280280 added += 1
281- with open (data .config .settings + "/user.settings" , 'w' , encoding = "utf-16 " ) as userfile :
281+ with open (data .config .settings + "/user.settings" , 'w' , encoding = "utf-8 " ) as userfile :
282282 config .write (userfile , space_around_delimiters = False )
283283 return added
284284
@@ -291,7 +291,7 @@ def uninstallUserSettings(self):
291291 for setting in iter (self .usersettings ):
292292 if config .has_section (setting .context ):
293293 config .remove_option (setting .context , setting .option )
294- with open (data .config .settings + "/user.settings" , 'w' , encoding = "utf-16 " ) as userfile :
294+ with open (data .config .settings + "/user.settings" , 'w' , encoding = "utf-8 " ) as userfile :
295295 config .write (userfile , space_around_delimiters = False )
296296
297297 def __repr__ (self ):
0 commit comments