mirror of
https://github.com/DominikDoom/a1111-sd-webui-tagcomplete.git
synced 2026-03-11 00:00:07 +00:00
fix write wildcard files with Chinese name with wrong coding to wc.txt
This commit is contained in:
@@ -23,7 +23,7 @@ def get_embeddings():
|
||||
|
||||
def write_to_temp_file(name, data):
|
||||
"""Writes the given data to a temporary file"""
|
||||
with open(os.path.join(TEMP_PATH, name), 'w') as f:
|
||||
with open(os.path.join(TEMP_PATH, name), 'w', encoding="utf-8") as f:
|
||||
f.write(('\n'.join(data)))
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user