yum install gedityum install dconf-editoryum install x11-xserver-utils dconf-editor dbus-x11 -yxhost +打开dconf-editor依次点开->org->gnome->gedit->preferences->encodings,设置gedit默认编码为“UTF-8”