/[gentoo]/xml/htdocs/doc/en/utf-8.xml
Gentoo

Diff of /xml/htdocs/doc/en/utf-8.xml

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.47 Revision 1.48
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.47 2007/04/17 19:04:17 nightmorph Exp $ --> 2<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/utf-8.xml,v 1.48 2008/05/19 21:08:38 swift 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
239<c>/bin/sh</c>), <path>~/.bash_profile</path> or <path>~/.bashrc</path> (if you 239<c>/bin/sh</c>), <path>~/.bash_profile</path> or <path>~/.bashrc</path> (if you
240use <c>/bin/bash</c>). 240use <c>/bin/bash</c>).
241</p> 241</p>
242 242
243<p> 243<p>
244Others prefer to set the locale globally. One specific circumstance where 244Others prefer to set the locale globally. One specific circumstance where
245the author particularly recommends doing this is when 245the author particularly recommends doing this is when
246<path>/etc/init.d/xdm</path> is in use, because 246<path>/etc/init.d/xdm</path> is in use, because
247this init script starts the display manager and desktop before any of the 247this init script starts the display manager and desktop before any of the
248aforementioned shell startup files are sourced, and so before any of the 248aforementioned shell startup files are sourced, and so before any of the
249variables are in the environment. 249variables are in the environment.
250</p> 250</p>
388</p> 388</p>
389 389
390<pre caption="Example usage of iconv"> 390<pre caption="Example usage of iconv">
391<comment>(substitute iso-8859-1 with the charset you are converting from)</comment> 391<comment>(substitute iso-8859-1 with the charset you are converting from)</comment>
392<comment>(Check the output is sane)</comment> 392<comment>(Check the output is sane)</comment>
393# <i>iconv -f iso-8859-1 -t utf-8 filename</i> 393# <i>iconv -f iso-8859-1 -t utf-8 filename</i>
394<comment>(Convert a file, you must create another file)</comment> 394<comment>(Convert a file, you must create another file)</comment>
395# <i>iconv -f iso-8859-1 -t utf-8 filename > newfile</i> 395# <i>iconv -f iso-8859-1 -t utf-8 filename > newfile</i>
396</pre> 396</pre>
397 397
398<p> 398<p>
4181</uri>. 4181</uri>.
419</p> 419</p>
420 420
421<p> 421<p>
422The <c>KEYMAP</c> variable, set in <path>/etc/conf.d/keymaps</path>, should 422The <c>KEYMAP</c> variable, set in <path>/etc/conf.d/keymaps</path>, should
423have a Unicode keymap specified. 423have a Unicode keymap specified.
424</p> 424</p>
425 425
426<pre caption="Example /etc/conf.d/keymaps snippet"> 426<pre caption="Example /etc/conf.d/keymaps snippet">
427<comment>(Change "uk" to your local layout)</comment> 427<comment>(Change "uk" to your local layout)</comment>
428KEYMAP="uk" 428KEYMAP="uk"
561<section> 561<section>
562<title>Vim, Emacs, Xemacs and Nano</title> 562<title>Vim, Emacs, Xemacs and Nano</title>
563<body> 563<body>
564 564
565<p> 565<p>
566Vim provides full UTF-8 support, and also has builtin detection of UTF-8 files. 566Vim provides full UTF-8 support, and also has builtin detection of UTF-8 files.
567For further information in Vim, use <c>:help mbyte.txt</c>. 567For further information in Vim, use <c>:help mbyte.txt</c>.
568</p> 568</p>
569 569
570<p> 570<p>
571Emacs 22.x and higher has full UTF-8 support as well. Xemacs 22.x does not 571Emacs 22.x and higher has full UTF-8 support as well. Xemacs 22.x does not
572support combining characters yet. 572support combining characters yet.
573</p>
574
575<p> 573</p>
574
575<p>
576Lower versions of Emacs and/or Xemacs might require you to install 576Lower versions of Emacs and/or Xemacs might require you to install
577<c>app-emacs/mule-ucs</c> and/or <c>app-xemacs/mule-ucs</c> 577<c>app-emacs/mule-ucs</c> and/or <c>app-xemacs/mule-ucs</c>
578and add the following code to your <path>~/.emacs</path> to have support for CJK 578and add the following code to your <path>~/.emacs</path> to have support for CJK
579languages in UTF-8: 579languages in UTF-8:
580</p> 580</p>
581 581
657<section> 657<section>
658<title>Man</title> 658<title>Man</title>
659<body> 659<body>
660 660
661<p> 661<p>
662Man pages are an integral part of any Linux machine. To ensure that any 662Man pages are an integral part of any Linux machine. To ensure that any
663unicode in your man pages render correctly, edit <path>/etc/man.conf</path> 663unicode in your man pages render correctly, edit <path>/etc/man.conf</path>
664and replace a line as shown below. 664and replace a line as shown below.
665</p> 665</p>
666 666
667<pre caption="man.conf changes for Unicode support"> 667<pre caption="man.conf changes for Unicode support">
668<comment>(This is the old line)</comment> 668<comment>(This is the old line)</comment>

Legend:
Removed from v.1.47  
changed lines
  Added in v.1.48

  ViewVC Help
Powered by ViewVC 1.1.20