/[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.26 Revision 1.27
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.26 2005/06/24 19:30:27 fox2mike Exp $ --> 2<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/utf-8.xml,v 1.27 2005/07/02 11:55:16 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
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.6</version> 28<version>2.7</version>
29<date>2005-06-25</date> 29<date>2005-07-02</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>
531<section> 531<section>
532<title>Vim, Emacs, Xemacs and Nano</title> 532<title>Vim, Emacs, Xemacs and Nano</title>
533<body> 533<body>
534 534
535<p> 535<p>
536Vim, Emacs and Xemacs provide full UTF-8 support, and also have builtin 536Vim provides full UTF-8 support, and also has builtin detection of UTF-8 files.
537detection of UTF-8 files. For further information in Vim, use <c>:help 537For further information in Vim, use <c>:help mbyte.txt</c>.
538mbyte.txt</c>. 538</p>
539
539</p> 540<p>
541Emacs 22.x and higher has full UTF-8 support as well. Xemacs 22.x does not
542support combining characters yet.
543</p>
544
545<p>
546Lower versions of Emacs and/or Xemacs might require you to install
547<c>app-emacs/mule-ucs</c> and/or <c>app-xemacs/mule-ucs</c>
548and add the following code to your <path>~/.emacs</path> to have support for CJK
549languages in UTF-8:
550</p>
551
552<pre caption="Emacs CJK UTF-8 support">
553(require 'un-define)
554(require 'jisx0213)
555(set-language-environment "Japanese")
556(set-default-coding-systems 'utf-8)
557(set-terminal-coding-system 'utf-8)
558</pre>
540 559
541<p> 560<p>
542Nano currently does not provide support for UTF-8, although it has been planned 561Nano currently does not provide support for UTF-8, although it has been planned
543for a long time. With luck, this will change in future. At the time of writing, 562for a long time. With luck, this will change in future. At the time of writing,
544UTF-8 support is in Nano's CVS, and should be included in the next release. 563UTF-8 support is in Nano's CVS, and should be included in the next release.

Legend:
Removed from v.1.26  
changed lines
  Added in v.1.27

  ViewVC Help
Powered by ViewVC 1.1.20