UTF-8 by default for gedit
Monday, January 14th, 2008For a long time, I use UTF-8 for source files. But it isn’t the default charset encoding of my gnome environment.
GEdit tries to autodetect the encoding to be used and it works fine. But this feature don’t work with the Snap Open plugin. Each time, Snap Open opens a file .. I need to confirm the usage of UTF-8
I tested this week-end a small script wrapper to change the default charset encoding to UTF-8 before starting gedit :
#!/bin/sh
LC_CTYPE=en_US.UTF-8
export LC_CTYPE
/usr/bin/gedit $*
Here are several minutes saved per day ![]()
Tryphon