/[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.51 Revision 1.52
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.51 2009/08/12 02:41:38 nightmorph Exp $ --> 2<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/utf-8.xml,v 1.52 2010/01/23 05:43:59 nightmorph 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>
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<author title="Editor"> 14<author title="Editor">
15 <mail link="fox2mike@gentoo.org">Shyam Mani</mail> 15 <mail link="fox2mike@gentoo.org">Shyam Mani</mail>
16</author> 16</author>
17 17
18<abstract> 18<abstract>
19This guide shows you how to set up and use the UTF-8 Unicode character set with 19This guide shows you how to set up and use the UTF-8 Unicode character set with
20your Gentoo Linux system, after explaining the benefits of Unicode and more 20your Gentoo Linux system, after explaining the benefits of Unicode and more
226 226
227</body> 227</body>
228</section> 228</section>
229<section> 229<section>
230<title>Setting the Locale</title> 230<title>Setting the Locale</title>
231<body> 231<body>
232 232
233<p> 233<p>
234There is one environment variable that needs to be set in order to use our new 234There is one environment variable that needs to be set in order to use our new
235UTF-8 locales: <c>LC_CTYPE</c> (or optionally <c>LANG</c>, if you want to change 235UTF-8 locales: <c>LC_CTYPE</c> (or optionally <c>LANG</c>, if you want to change
236the system language as well). There are also many different ways to set it; some 236the system language as well). There are also many different ways to set it; some
237people prefer to only have a UTF-8 environment for a specific user, in which 237people prefer to only have a UTF-8 environment for a specific user, in which
238case they set them in their <path>~/.profile</path> (if you use <c>/bin/sh</c>), 238case they set them in their <path>~/.profile</path> (if you use <c>/bin/sh</c>),
239<path>~/.bash_profile</path> or <path>~/.bashrc</path> (if you use 239<path>~/.bash_profile</path> or <path>~/.bashrc</path> (if you use
240<c>/bin/bash</c>). More details and best practices can be found in our <uri 240<c>/bin/bash</c>). More details and best practices can be found in our <uri
241link="/doc/en/guide-localization.xml">Locallization Guide</uri>. 241link="/doc/en/guide-localization.xml">Localization Guide</uri>.
242</p> 242</p>
243 243
244<p> 244<p>
245Others prefer to set the locale globally. One specific circumstance where 245Others prefer to set the locale globally. One specific circumstance where
246the author particularly recommends doing this is when 246the author particularly recommends doing this is when
247<path>/etc/init.d/xdm</path> is in use, because 247<path>/etc/init.d/xdm</path> is in use, because
248this init script starts the display manager and desktop before any of the 248this init script starts the display manager and desktop before any of the
249aforementioned shell startup files are sourced, and so before any of the 249aforementioned shell startup files are sourced, and so before any of the
250variables are in the environment. 250variables are in the environment.
251</p> 251</p>
252 252
253<p> 253<p>
254Setting the locale globally should be done using 254Setting the locale globally should be done using
255<path>/etc/env.d/02locale</path>. The file should look something like the 255<path>/etc/env.d/02locale</path>. The file should look something like the
256following: 256following:

Legend:
Removed from v.1.51  
changed lines
  Added in v.1.52

  ViewVC Help
Powered by ViewVC 1.1.20