Hi,
Im trying to change the default encoding, from UTF-8 to ISO-8859-15, in gnome-terminal for all users on a Centos7 computer but it will not work.
I have used the following methods, do you have any idea how to solve this?
In dconf-editor, I set a custom value and set "Use default value" to off:
/org/gnome/terminal/legacy/encodings
Created a file with the correct ISO in /etc/dconf/db/local.d/ and then excecuted dconf update
With gsettings:
gsettings set org.gnome.Terminal.Legacy.Settings encodings "['ISO-8859-15']"
Please help
[SOLVED] Customize gnome-terminal
[SOLVED] Customize gnome-terminal
Last edited by erbr on 2018/02/13 14:03:22, edited 1 time in total.
Re: Customize gnome-terminal
Why do you want to change the character encoding to anything other than UTF-8? Everything in your system is using UTF-8.
If changing to ISO-8859-15 is your solution to a problem, be aware that this solution may create more problems than it solves.
If changing to ISO-8859-15 is your solution to a problem, be aware that this solution may create more problems than it solves.
[SOLVED] Re: Customize gnome-terminal
I solved it like this:
With dconf:
[org/gnome/terminal/legacy]
schema-version=uint 32 3
encodings=['ISO-8859-15']
and I also have to run the following command for each user (created a file in /etc/profile.d/script.sh:
gsettings set org.gnome.Terminal.Legacy.Profile:/org/gnome/terminal/legacy/profiles:/:$(gsettings get org.gnome.Terminal.ProfilesList default | tr -d \')/ encoding 'ISO-8859-15'
@pjsr: I know but we have a system that cant use UTF-8. In this case we solve it with the settings described here.
With dconf:
[org/gnome/terminal/legacy]
schema-version=uint 32 3
encodings=['ISO-8859-15']
and I also have to run the following command for each user (created a file in /etc/profile.d/script.sh:
gsettings set org.gnome.Terminal.Legacy.Profile:/org/gnome/terminal/legacy/profiles:/:$(gsettings get org.gnome.Terminal.ProfilesList default | tr -d \')/ encoding 'ISO-8859-15'
@pjsr: I know but we have a system that cant use UTF-8. In this case we solve it with the settings described here.
Re: [SOLVED] Customize gnome-terminal
Putting the gsettings command in a script in /etc/profile.d makes that it as executed in every shell, even when you are not in a Gnome desktop.
You could put it in a .desktop file in /etc/xdg/autostart, so it is only executed when the user starts the graphical desktop session.
You could put it in a .desktop file in /etc/xdg/autostart, so it is only executed when the user starts the graphical desktop session.