2

After upgrading from Ubuntu 18.04 LTS to 20.04 today, my terminal character display was messed up. Instead of displaying:

@System-Product-Name:~$

it replaces each of the characters as a strange square with four tiny numbers in it. The strange squares look the same as this post. I guess the terminal couldn't find the correct encoding for characters. Is there anyway to fix the encoding error?

Thank you.

3
  • Welcome to Ask Ubuntu. Could you add output of env | grep -e LANG -e LC ref: askubuntu.com/a/640071/26246 Also have you tried changing the terminal font.
    – user.dz
    Oct 9, 2020 at 17:32
  • 1
    @user.dz Thank you! Changing the terminal font was right! The output of your command has their values en_US.UTF-8
    – Smile
    Oct 9, 2020 at 17:40
  • You welcome, you may write an answer. Have nice day.
    – user.dz
    Oct 9, 2020 at 17:47

1 Answer 1

2
  1. Check that the locale was set to en_US.UTF-8 by running the command:

    env | grep -e LANG -e LC_
    
  2. Select the appropriate font in Terminal → the drop down list located at the title bar → PreferencesUnnamedTextCustom font.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .