/[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.42 Revision 1.43
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.42 2006/07/15 22:06:43 rane Exp $ --> 2<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/utf-8.xml,v 1.43 2006/07/19 11:56:26 rane 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.20</version> 28<version>2.21</version>
29<date>2006-07-15</date> 29<date>2006-07-18</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>
178</p> 178</p>
179 179
180<p> 180<p>
181The preliminary requirement for UTF-8 is to have a version of glibc installed 181The preliminary requirement for UTF-8 is to have a version of glibc installed
182that has national language support. The recommend means to do this is the 182that has national language support. The recommend means to do this is the
183<path>/etc/locales.build</path> file in combination with the <c>userlocales</c> 183<path>/etc/locale.gen</path> file. It is beyond the scope of this document to
184USE flag. It is beyond the scope of this document to explain the usage of this 184explain the usage of this file though. It is explained in the <uri
185file though, luckily, the usage of this file is well documented in the comments
186within it. It is also explained in the <uri
187link="/doc/en/guide-localization.xml#doc_chap3_sect3"> Gentoo Localisation 185link="/doc/en/guide-localization.xml#doc_chap3_sect3">Gentoo Localization
188Guide</uri>. 186Guide</uri>.
189</p> 187</p>
190 188
191<p> 189<p>
192Next, we'll need to decide whether a UTF-8 locale is already available for our 190Next, we'll need to decide whether a UTF-8 locale is already available for our
216# <i>localedef -i en_GB -f UTF-8 en_GB.UTF-8</i> 214# <i>localedef -i en_GB -f UTF-8 en_GB.UTF-8</i>
217</pre> 215</pre>
218 216
219<p> 217<p>
220Another way to include a UTF-8 locale is to add it to the 218Another way to include a UTF-8 locale is to add it to the
221<path>/etc/locales.build</path> file and rebuild <c>glibc</c> with the 219<path>/etc/locale.gen</path> file and generate necessary locales with
222<c>userlocales</c> USE flag set. 220<c>locale-gen</c> command.
223</p> 221</p>
224 222
225<pre caption="Line in /etc/locales.build"> 223<pre caption="Line in /etc/locale.gen">
226en_GB.UTF-8/UTF-8 224en_GB.UTF-8 UTF-8
227</pre> 225</pre>
228 226
229</body> 227</body>
230</section> 228</section>
231<section> 229<section>

Legend:
Removed from v.1.42  
changed lines
  Added in v.1.43

  ViewVC Help
Powered by ViewVC 1.1.20