How can I change locale/encoding to avoid getting weird characters in terminal?

8,939

Change the character translation in PuTTY to UTF-8.

Share:
8,939

Related videos on Youtube

Patryk
Author by

Patryk

Software Engineer C++/Go/shell/python coder Linux enthusiast Github profiles: https://github.com/pmalek https://github.com/pmalekn

Updated on September 18, 2022

Comments

  • Patryk
    Patryk over 1 year

    I have installed tree on my ubuntu box, when i connect to it from Putty and I launch tree i get this :

    $ tree
    âââ html.vim -> xml.vim
    âââ js.vim -> xml.vim
    âââ xml.vim
    

    instead of this :

    $ tree --charset=ANSII
    |-- html.vim -> xml.vim
    |-- js.vim -> xml.vim
    `-- xml.vim
    

    I also get this problem when e.g. I list my packages from npm (package manager from nodejs)

    $ npm list
    /home/monkey/scripts/chatter
    ââ⏠[email protected]
    â âââ [email protected]
    â âââ [email protected]
    â ââ⏠[email protected]
    â â âââ [email protected]
    

    How can I change that (either from Putty or linux box) ?

    • Admin
      Admin over 11 years
      Change the character translation in PuTTY to UTF-8.