Closed Lumerica closed 1 week ago
is there a particular reason you are using utf16? The gradio page is encoded as utf8... im not sure what will happen if I tried to put raw utf16 text on the page.
Kinda late response here. Basically I've been using UTF16 for years as default encoding. The answer of the question would be not so related to the extension,
Reason is because i like to save metadata of many various things (copy pasting etc.) But in general its not just limited to asian characters but also emojis. Saving them in a UTF-8 text file will mean its lost.
That is my reason that I've always used UTF-16 for my text files except when I need to write something in bat file or stuff then I'm forced to save it as UTF-8 lol which makes sense in that case.
I did some looking into this... and from what i can tell... I dont see an easy way to allow this. Everything I see that talks about UTF16 for websites says DONT DO IT lol. If someone wants to add support and do a pull request Id be happy to accept it. But unfortunately I dont know how to add support without a lot of work and more research. So for now Im going to close this as not planned.
Hi, I'm using Windows 10, all the text file i created are utf-16 using latest SD 1.10.1. Python 3.10.10 I am aware that this is not related to gradio or SD, as I had this problem since more than 1 year ago. But today I thought I should give another try with a fresh look to see if I can find something.
It seems to be pointing that if a UTF16 text file exist you will get error. if I change the text file format to UTF-8, I get no error in console nor in webui and the text file can be displayed.
Is there a way to support these UTF-16?