[SOLVED] variety and UTF-8 getting mangled files with non utf-8?
by BW-userx from LinuxQuestions.org on (#4V92W)
I open the set_wallpaper to modify it to work in WMaker,Fluxbox, and E16, but when I open it I get the mangled looks like a binary file instead of text, and in Kwrite I get this message.
Code:The file /home/userx/.config/variety2/scripts/set_wallpaper
was opened with UTF-8 encoding but contained invalid characters.
It is set to read-only mode, as saving might destroy its content.
Either reopen the file with the correct encoding chosen or enable
the read-write mode again in the menu to be able to edit it.in /etc/profile.d/lang.sh it's set to
Code:# UTF-8 locales will include "UTF-8" in the output.
export LANG=en_US.UTF-8get a fresh copy of set_wallpaper off of git save it in geany it gets mangled again. Geany is set to unicode (UTF-8).
https://github.com/varietywalls/vari.../set_wallpaper
AND if I save it on a different partition it does not have this effect on the file. Only in its own dir in my home.
I do not know what I am missing here. Does anyone else?
I could try delete this home and making me a new one by remove user and adduser.


Code:The file /home/userx/.config/variety2/scripts/set_wallpaper
was opened with UTF-8 encoding but contained invalid characters.
It is set to read-only mode, as saving might destroy its content.
Either reopen the file with the correct encoding chosen or enable
the read-write mode again in the menu to be able to edit it.in /etc/profile.d/lang.sh it's set to
Code:# UTF-8 locales will include "UTF-8" in the output.
export LANG=en_US.UTF-8get a fresh copy of set_wallpaper off of git save it in geany it gets mangled again. Geany is set to unicode (UTF-8).
https://github.com/varietywalls/vari.../set_wallpaper
AND if I save it on a different partition it does not have this effect on the file. Only in its own dir in my home.
I do not know what I am missing here. Does anyone else?
I could try delete this home and making me a new one by remove user and adduser.