Adrian World Design
  • Services
    • Website Consulting
    • Startup Consulting
    • Zend Development
  • Portfolio
    • My Framework
  • Knowledge
    • Web Standards
    • PHP bare-bones
    • Zend Framework
    • Zend Framework 2
    • Git - Github
    • Search Engine Optimization
    • Web Hosting
    • Linux
    • Microsoft Windows
    • Web Browsers
    • Mobile Devices
  • About
    • Business
    • Professionally
    • Personally
  • Contact
    • Contact Form
    • Phone
    • Email
    • Messaging

Knowledge Base Overview

Character sets for man pages

Knowledge ⇒ Linux ⇒ Helpful tips ⇒ Character sets for man pages
Tweet
Share on Tumblr

Created: Mar 28, 2012, 9:03:34 AM CDTLast updated: Apr 12, 2012, 8:26:28 AM CDT

If you read a manual in Linux, known as man pages, you might see some weird, strange characters. You are even able to identify some of this garbled text as an apostrophe (single quote character).

You may also be able to pin this problem to the character set but what is the correct charset?

Default language

The character set, i.e. how text has to be printed/shown, is defined by the language setting. In Linux this is defined with the environment variable LANG.

[user@host ~]$ set | grep -i lang
LANG=en_US.UTF-8

Although this looks perfectly fine it is in fact our problem.

The language should be only en_US or maybe whatever your preferred language is. The appendix UTF-8 throws certain characters off in your man pages and the apostrophe is usually one character you see a lot—or actually you don't see it.

Export en_US

So, all you have to do is set export LANG=en_US as the language.

blog comments powered by Disqus
Prev

Powered by FeedBurner Load our "Knowledge Base" feed in your RSS feeder

Follow us on Twitter
Follow us on Facebook
Follow us on LinkedIn
Follow us on Google+

All rights reserved, Adrian World Design ©2009–2022 Powered by Wejas Framework

Jump to Top