Strange character in linux man pages

If you got strange characters in you man pages here is how to fix this.

Method 1

PuTTY's default translation is ISO-Latin-1. Ubuntu's default console locale is based on UTF-8. You have to change one of them to match the other. In PuTTY, change the translation to UTF-8, or from terminal set the locale with LC_ALL to ISO-Latin-1.

  1. Open PuTTY
  2. Select a session
  3. Click on [Load]
  4. In left window click on Translation
  5. Select UTF8 by Character set stranslation on recieved data
  6. Select Session in left window
  7. Clik on [Save]

Method 2

Strange characters in man pages:

·  --where=âwhere_conditionâ, -w âwhere_conditionâ

edit th file /etc/man.config
find section:

# Useful paths - note that COL should not be defined when
# NROFF is defined as "groff -Tascii" or "groff -Tlatin1";
# not only is it superfluous, but it actually damages the output.
# For use with utf-8, NROFF should be "nroff -mandoc" without -T option.
# (Maybe - but today I need -Tlatin1 to prevent double conversion to utf8.)
#
# If you have a new troff (version 1.18.1?) and its colored output
# causes problems, add the -c option to TROFF, NROFF.
#
TROFF       /usr/bin/groff -Tps -mandoc
NROFF      /usr/bin/nroff -c --legacy NROFF_OLD_CHARSET -mandoc 2>/dev/null

find line:

NROFF      /usr/bin/nroff -c --legacy NROFF_OLD_CHARSET -mandoc 2>/dev/null

change that to:

NROFF      /usr/bin/groff -Tascii -mandoc

Save and exit.

Post new comment
The content of this field is kept private and will not be shown publicly.
CAPTCHA
Deze vraag is om te controleren of u een persoon bent. Di is om spam berichten tegen te gaan.