Open space-nuko opened 1 year ago
When using append or similar, if the caption file is in UTF-8 the existing caption will be mangled as ASCII or something.
append
This line needs to specify UTF-8 as the encoding in read_text():
read_text()
https://github.com/toriato/stable-diffusion-webui-wd14-tagger/blob/590c9a73fbb7db0f312d99a4f2b464328a7f569d/tagger/ui.py#L157
When using
append
or similar, if the caption file is in UTF-8 the existing caption will be mangled as ASCII or something.This line needs to specify UTF-8 as the encoding in
read_text()
:https://github.com/toriato/stable-diffusion-webui-wd14-tagger/blob/590c9a73fbb7db0f312d99a4f2b464328a7f569d/tagger/ui.py#L157