Odd characters in console

Richard G

Verified User
Joined
Jul 6, 2008
Messages
14,002
Location
Maastricht
Anybody know how to fix this?
When logging into ssh all text seems fine.

However, the result text which I get from the OS for example when installing Directadmin contains some odd characters like this:
2019-09-04 17:46:12 (4.54 MB/s) - ‘/usr/local/directadmin/update.tar.gzâ€
This a€ returns a lot.

My locale looks fine, same as the other servers:
Code:
 locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=

Code:
localectl
   System Locale: LANG=en_US.UTF-8
       VC Keymap: us
      X11 Layout: us
       X11 Model: pc105+inet
     X11 Options: terminate:ctrl_alt_bksp

What can be causing these a€ in the output? Or rather, how can I fix this?
 
Maybe it is your computer shell client that is not using UTF-8? If you use putty, then check that you have it set to use UTF-8 like it says in the first reply here: https://superuser.com/questions/366895/getting-Â-and-â-characters-in-linux-putty-console

Is your terminal configured to display UTF-8? Try to keep locale and terminal setting in accord. If connecting through ssh, you should take the target machine's locale into consideration, too.

In PuTTY, go to Settings -> Window -> Translation -> UTF-8
 
Hello Ditto.

Thank you. I've thought about that, but it has all the same settings as the other server.
My computer shell is SecureCRT which is setup to VT100 with UTF 8 character encoding and the option to use unicode graphic characters.

The strange thing is that I only see those odd characters when a script is executed.

Hmmz... just tested with putty and the issue did not occur. I'll have another look at my shell program.
Thank you.
 
Yep, odd. My SecureCRT had a hickup probably.
Removed the connection, added it again in the same way and now the strange characters are gone.
So issue solved.
 
Back
Top