Closed galister closed 5 months ago
I encountered this panic when running an old windows program via wine.
Using from_utf8_lossy instead will replace invalid characters with �
from_utf8_lossy
I also changed NET_WM_NAME, which as we know supposed to be valid UTF-8, but I believe it's better to not panic, just in case it isn't.
Thanks!
I encountered this panic when running an old windows program via wine.
Using
from_utf8_lossy
instead will replace invalid characters with �I also changed NET_WM_NAME, which as we know supposed to be valid UTF-8, but I believe it's better to not panic, just in case it isn't.