3

I use PuTTY to connect to my Xubuntu system. When I set the translation to UTF-8 the fancy output from systemd looks fine but a ncurses application show up oddly. When I set the translation in PuTTY to ISO-8859-1 (Western European) the ncurses program look perfect and the output from systemd has the odd characters.

  1. Which application is behaving badly?
  2. Is there a way of forcing either application to be compatible with the other?
pa4080
  • 30,621

1 Answers1

1

Probably you need setup few environment variables to customize programs to your language and country. Here you are an article about Locales. In short:

  • Run locale to check current values, they must match with PuTTY's translation settings.
  • If the translation in PuTTY is set to UTF-8 and (for example) your language is Bulgarian, you need to set bg_BG.UTF-8 into your locales (if it's not). You can do that through next steps:

    • generate missing locales:

      sudo locale-gen en_US.UTF-8
      
    • reconfigure locales:

      export LANG=bg_BG.UTF-8
      
    • Then you can adjust some desired locale categories. For example you can turn the translated terminal messages back in English via:

      export LANGUAGE=en_EN.UTF-8
      
  • If the things looks right, you can put above (export) commands into the end of ~/.bashrc file and they will be loaded for each future session.

  • According to the @fkraiem's comment above for some apps (like as GNU Dialog) you must add and this line into the end of ~/.bashrc:

    export NCURSES_NO_UTF8_ACS=1
    

Hope that will help.

pa4080
  • 30,621