/[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.17 Revision 1.18
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.17 2005/06/02 18:37:07 swift Exp $ --> 2<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/utf-8.xml,v 1.18 2005/06/02 18:51:06 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
8<author title="Author"> 8<author title="Author">
9 <mail link="slarti@gentoo.org">Thomas Martin</mail> 9 <mail link="slarti@gentoo.org">Thomas Martin</mail>
10</author> 10</author>
11<author title="Contributor"> 11<author title="Contributor">
12 <mail link="devil@gentoo.org.ua">Alexander Simonov</mail> 12 <mail link="devil@gentoo.org.ua">Alexander Simonov</mail>
13</author> 13</author>
14 14
15<abstract> 15<abstract>
16This guide shows you how to set up and use the UTF-8 Unicode character set with 16This guide shows you how to set up and use the UTF-8 Unicode character set with
17your Gentoo Linux system, after explaining the benefits of Unicode and more 17your Gentoo Linux system, after explaining the benefits of Unicode and more
18specifically UTF-8. 18specifically UTF-8.
19</abstract> 19</abstract>
20 20
21<license /> 21<license />
22 22
23<version>2.1</version> 23<version>2.2</version>
24<date>2005-06-02</date> 24<date>2005-06-02</date>
25 25
26<chapter> 26<chapter>
27<title>Character Encodings</title> 27<title>Character Encodings</title>
28<section> 28<section>
29<title>What is a Character Encoding?</title> 29<title>What is a Character Encoding?</title>
30<body> 30<body>
31 31
32<p> 32<p>
33Computers do not understand text themselves. Instead, every character is 33Computers do not understand text themselves. Instead, every character is
34represented by a number. Traditionally, each set of numbers used to represent 34represented by a number. Traditionally, each set of numbers used to represent
35alphabets and characters (known as a coding system, encoding or character set) 35alphabets and characters (known as a coding system, encoding or character set)
36was limited in size due to limitations in computer hardware. 36was limited in size due to limitations in computer hardware.
37</p> 37</p>
38 38
220<pre caption="Line in /etc/locales.build"> 220<pre caption="Line in /etc/locales.build">
221en_GB.UTF-8/UTF-8 221en_GB.UTF-8/UTF-8
222</pre> 222</pre>
223 223
224</body> 224</body>
225</section> 225</section>
226<section> 226<section>
227<title>Setting the Locale</title> 227<title>Setting the Locale</title>
228<body> 228<body>
229 229
230<p> 230<p>
231There is one environment variables that needs to be set in order to use 231There is one environment variables that needs to be set in order to use
232our new UTF-8 locales: <c>LC_ALL</c> (this variable overrides the <c>LANG</c> 232our new UTF-8 locales: <c>LC_ALL</c> (this variable overrides the <c>LANG</c>
233setting as well). There are also many different ways to set it; some people 233setting as well). There are also many different ways to set it; some people
234prefer to only have a UTF-8 environment for a specific user, in which case 234prefer to only have a UTF-8 environment for a specific user, in which case
235they set them in their <path>~/.profile</path> or <path>~/.bashrc</path>. 235they set them in their <path>~/.profile</path> (if you use <c>/bin/sh</c>),
236<path>~/.bash_profile</path> or <path>~/.bashrc</path> (if you use
237<c>/bin/bash</c>).
238</p>
239
240<p>
236Others prefer to set the locale globally. One specific circumstance where 241Others prefer to set the locale globally. One specific circumstance where
237the author particularly recommends doing this is when 242the author particularly recommends doing this is when
238<path>/etc/init.d/xdm</path> is in use, because 243<path>/etc/init.d/xdm</path> is in use, because
239this init script starts the display manager and desktop before any of the 244this init script starts the display manager and desktop before any of the
240aforementioned shell startup files are sourced, and so before any of the 245aforementioned shell startup files are sourced, and so before any of the
241variables are in the environment. 246variables are in the environment.
242</p> 247</p>
243 248
244<p> 249<p>
245Setting the locale globally should be done using 250Setting the locale globally should be done using
246<path>/etc/env.d/02locale</path>. The file should look something like the 251<path>/etc/env.d/02locale</path>. The file should look something like the
247following: 252following:
248</p> 253</p>
249 254
250<pre caption="Demonstration /etc/env.d/02locale"> 255<pre caption="Demonstration /etc/env.d/02locale">

Legend:
Removed from v.1.17  
changed lines
  Added in v.1.18

  ViewVC Help
Powered by ViewVC 1.1.20