Results 1 to 5 of 5

Thread: Cannot change Terminal default encoding

  1. #1
    Join Date
    Mar 2006
    Beans
    76

    Cannot change Terminal default encoding

    Hi,

    I'm on Precise Pangolin 12.04 LTS

    I've a lot of custom code which outputs text as ISO-8859-1 encoding to the Terminal.

    I installed such encoding, and made it the default. I verified that now the desktop uses this encoding.

    Also, the contents of /etc/default/locale is LANG=es_ES.ISO-8859-1

    However, when I open Terminal, the default encoding is always UTF-8. I can navigate to the Terminal menu bar, and choose ISO-8859-1 encoding, but it's an annoyance to do it everytime I open a Terminal.

    How can I change the Terminal default to ISO-8859-1?

    And, why is Terminal setting UTF-8 as the default?

    Thanks!!

  2. #2
    Join Date
    Apr 2006
    Beans
    800
    Distro
    Lubuntu 12.04 Precise Pangolin

    Re: Cannot change Terminal default encoding

    If you are using gnome terminal you can set the default encoding with gconftool, like this:
    Code:
    gconftool --set --type=string /apps/gnome-terminal/profiles/Default/encoding ISO-8859-1

  3. #3
    Join Date
    Apr 2006
    Beans
    800
    Distro
    Lubuntu 12.04 Precise Pangolin

    Re: Cannot change Terminal default encoding

    ...and as to why utf-8 is default, I think it's simply because it's superior. If you are in the mood for reading, you can get the whole background here:

    http://www.joelonsoftware.com/articles/Unicode.html

  4. #4
    Join Date
    Mar 2006
    Beans
    76

    Re: Cannot change Terminal default encoding

    Quote Originally Posted by lykeion View Post
    If you are using gnome terminal you can set the default encoding with gconftool, like this:
    Code:
    gconftool --set --type=string /apps/gnome-terminal/profiles/Default/encoding ISO-8859-1
    Worked like a charm, thanks.

  5. #5
    Join Date
    Apr 2006
    Beans
    800
    Distro
    Lubuntu 12.04 Precise Pangolin

    Re: Cannot change Terminal default encoding

    Glad I could help outofsync. If you set this thread to SOLVED in Thread tools menu, others can find the solutions to questions more easily.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •