mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-08-08 05:12:35 +00:00
json.dump(ensure_ascii=False)
improve json readability
This commit is contained in:
@@ -134,7 +134,7 @@ class UserMetadataEditor:
|
||||
basename, ext = os.path.splitext(filename)
|
||||
|
||||
with open(basename + '.json', "w", encoding="utf8") as file:
|
||||
json.dump(metadata, file, indent=4)
|
||||
json.dump(metadata, file, indent=4, ensure_ascii=False)
|
||||
|
||||
def save_user_metadata(self, name, desc, notes):
|
||||
user_metadata = self.get_user_metadata(name)
|
||||
|
Reference in New Issue
Block a user