| 1 | <?xml version='1.0' encoding="UTF-8"?> |
1 | <?xml version='1.0' encoding="UTF-8"?> |
| 2 | <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/utf-8.xml,v 1.43 2006/07/19 11:56:26 rane Exp $ --> |
2 | <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/utf-8.xml,v 1.44 2006/08/29 10:03:52 rane Exp $ --> |
| 3 | <!DOCTYPE guide SYSTEM "/dtd/guide.dtd"> |
3 | <!DOCTYPE guide SYSTEM "/dtd/guide.dtd"> |
| 4 | |
4 | |
| 5 | <guide link="/doc/en/utf-8.xml"> |
5 | <guide link="/doc/en/utf-8.xml"> |
| 6 | <title>Using UTF-8 with Gentoo</title> |
6 | <title>Using UTF-8 with Gentoo</title> |
| 7 | |
7 | |
| … | |
… | |
| 23 | |
23 | |
| 24 | <!-- The content of this document is licensed under the CC-BY-SA license --> |
24 | <!-- The content of this document is licensed under the CC-BY-SA license --> |
| 25 | <!-- See http://creativecommons.org/licenses/by-sa/2.5 --> |
25 | <!-- See http://creativecommons.org/licenses/by-sa/2.5 --> |
| 26 | <license /> |
26 | <license /> |
| 27 | |
27 | |
| 28 | <version>2.21</version> |
28 | <version>2.22</version> |
| 29 | <date>2006-07-18</date> |
29 | <date>2006-08-28</date> |
| 30 | |
30 | |
| 31 | <chapter> |
31 | <chapter> |
| 32 | <title>Character Encodings</title> |
32 | <title>Character Encodings</title> |
| 33 | <section> |
33 | <section> |
| 34 | <title>What is a Character Encoding?</title> |
34 | <title>What is a Character Encoding?</title> |
| … | |
… | |
| 638 | |
638 | |
| 639 | <p> |
639 | <p> |
| 640 | Further information is available from the <uri |
640 | Further information is available from the <uri |
| 641 | link="http://wiki.mutt.org/index.cgi?MuttFaq/Charset">Mutt Wiki</uri>. |
641 | link="http://wiki.mutt.org/index.cgi?MuttFaq/Charset">Mutt Wiki</uri>. |
| 642 | </p> |
642 | </p> |
| 643 | |
|
|
| 644 | </body> |
|
|
| 645 | </section> |
|
|
| 646 | <section> |
|
|
| 647 | <title>Less</title> |
|
|
| 648 | <body> |
|
|
| 649 | |
|
|
| 650 | <p> |
|
|
| 651 | We all use a lot of <c>more</c> or <c>less</c> along with the <c>|</c> to be |
|
|
| 652 | able to correctly see the output of a command, like for example |
|
|
| 653 | <c>dmesg | less</c>. While <c>more</c> only needs the shell to be UTF-8 aware, |
|
|
| 654 | <c>less</c> needs an environment variable set, <c>LESSCHARSET</c> to ensure |
|
|
| 655 | that unicode characters are rendered correctly. This can be set in |
|
|
| 656 | <path>/etc/profile</path> or <path>~/.bash_profile</path>. Fire up the editor |
|
|
| 657 | of your choice and the add the following line to one of the files mentioned |
|
|
| 658 | above. |
|
|
| 659 | </p> |
|
|
| 660 | |
|
|
| 661 | <pre caption="Setting up the Environment variable for less"> |
|
|
| 662 | LESSCHARSET=utf-8 |
|
|
| 663 | </pre> |
|
|
| 664 | |
643 | |
| 665 | </body> |
644 | </body> |
| 666 | </section> |
645 | </section> |
| 667 | <section> |
646 | <section> |
| 668 | <title>Man</title> |
647 | <title>Man</title> |