/[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.12 Revision 1.13
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.12 2005/04/24 14:11:51 bennyc Exp $ --> 2<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/utf-8.xml,v 1.13 2005/04/24 16:13:48 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>1.8</version> 23<version>1.9</version>
24<date>2005-04-05</date> 24<date>2005-04-24</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
39</body> 39</body>
237recommends doing this is when <path>/etc/init.d/xdm</path> is in use, because 237recommends doing this is when <path>/etc/init.d/xdm</path> is in use, because
238this init script starts the display manager and desktop before any of the 238this init script starts the display manager and desktop before any of the
239aforementioned shell startup files are sourced, and so before any of the 239aforementioned shell startup files are sourced, and so before any of the
240variables are in the environment. 240variables are in the environment.
241</p> 241</p>
242 242
243<p> 243<p>
244Setting the locale globally should be done using 244Setting the locale globally should be done using
245<path>/etc/env.d/02local</path>. The file should look something like the 245<path>/etc/env.d/02local</path>. The file should look something like the
246following: 246following:
247</p> 247</p>
248 248
249<pre caption="Demonstration /etc/env.d/02locale"> 249<pre caption="Demonstration /etc/env.d/02locale">
250<comment>(As always, change "en_GB.UTF-8" to your locale)</comment> 250<comment>(As always, change "en_GB.UTF-8" to your locale)</comment>
251LC_ALL="en_GB.UTF-8" 251LC_ALL="en_GB.UTF-8"
252LOCALE="en_GB.UTF-8" 252LANG="en_GB.UTF-8"
253</pre> 253</pre>
254 254
255<p> 255<p>
256Next, the environment must be updated with the change. 256Next, the environment must be updated with the change.
257</p> 257</p>
258 258
259<pre caption="Updating the environment"> 259<pre caption="Updating the environment">
260# <i>env-update</i> 260# <i>env-update</i>
261>>> Regenerating /etc/ld.so.cache... 261>>> Regenerating /etc/ld.so.cache...
262 * Caching service dependencies ... 262 * Caching service dependencies ...
263 # <i>source /etc/profile</i> 263# <i>source /etc/profile</i>
264</pre> 264</pre>
265 265
266<p> 266<p>
267Now, run <c>locale</c> with no arguments to see if we have the correct 267Now, run <c>locale</c> with no arguments to see if we have the correct
268variables in our environment: 268variables in our environment:
269</p> 269</p>
270 270
271<pre caption="Checking if our new locale is in the environment"> 271<pre caption="Checking if our new locale is in the environment">
272# <i>locale</i> 272# <i>locale</i>
273LANG=en_GB.UTF-8 273LANG=en_GB.UTF-8
274LC_CTYPE="en_GB.UTF-8" 274LC_CTYPE="en_GB.UTF-8"
275LC_NUMERIC="en_GB.UTF-8" 275LC_NUMERIC="en_GB.UTF-8"
276LC_TIME="en_GB.UTF-8" 276LC_TIME="en_GB.UTF-8"
277LC_COLLATE="en_GB.UTF-8" 277LC_COLLATE="en_GB.UTF-8"
278LC_MONETARY="en_GB.UTF-8" 278LC_MONETARY="en_GB.UTF-8"

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.13

  ViewVC Help
Powered by ViewVC 1.1.20