/[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.49 Revision 1.50
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.49 2008/10/10 16:03:49 jkt Exp $ --> 2<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/utf-8.xml,v 1.50 2008/10/10 17:42:15 jkt 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.26</version> 28<version>2.27</version>
29<date>2008-10-10</date> 29<date>2008-10-10</date>
30 30
31<chapter> 31<chapter>
32<title>Character Encodings</title> 32<title>Character Encodings</title>
33<section> 33<section>
260<comment>(As always, change "en_GB.UTF-8" to your locale)</comment> 260<comment>(As always, change "en_GB.UTF-8" to your locale)</comment>
261LANG="en_GB.UTF-8" 261LANG="en_GB.UTF-8"
262</pre> 262</pre>
263 263
264<note> 264<note>
265You can also substitute <c>LC_ALL</c> for <c>LANG</c>. This sets your locale 265You can also substitute <c>LC_CTYPE</c> for <c>LANG</c>. For more information on
266for all categories, including numerical and currency values. On a very few 266the categories affected by using <c>LC_CTYPE</c>, please read the <uri
267systems, it might cause some issues. However, most users should be able to use
268<c>LC_ALL</c> without problems. For more information on the categories affected
269by using <c>LC_ALL</c>, please read the <uri
270link="http://www.gnu.org/software/libc/manual/html_node/Locale-Categories.html#Locale-Categories">GNU 267link="http://www.gnu.org/software/libc/manual/html_node/Locale-Categories.html#Locale-Categories">GNU
271locale page</uri>. 268locale page</uri>.
272</note> 269</note>
273 270
274<p> 271<p>
287variables in our environment: 284variables in our environment:
288</p> 285</p>
289 286
290<pre caption="Checking if our new locale is in the environment"> 287<pre caption="Checking if our new locale is in the environment">
291# <i>locale</i> 288# <i>locale</i>
292LANG= 289LANG=en_GB.UTF-8
293LC_CTYPE="en_GB.UTF-8" 290LC_CTYPE="en_GB.UTF-8"
294LC_NUMERIC="en_GB.UTF-8" 291LC_NUMERIC="en_GB.UTF-8"
295LC_TIME="en_GB.UTF-8" 292LC_TIME="en_GB.UTF-8"
296LC_COLLATE="en_GB.UTF-8" 293LC_COLLATE="en_GB.UTF-8"
297LC_MONETARY="en_GB.UTF-8" 294LC_MONETARY="en_GB.UTF-8"
300LC_NAME="en_GB.UTF-8" 297LC_NAME="en_GB.UTF-8"
301LC_ADDRESS="en_GB.UTF-8" 298LC_ADDRESS="en_GB.UTF-8"
302LC_TELEPHONE="en_GB.UTF-8" 299LC_TELEPHONE="en_GB.UTF-8"
303LC_MEASUREMENT="en_GB.UTF-8" 300LC_MEASUREMENT="en_GB.UTF-8"
304LC_IDENTIFICATION="en_GB.UTF-8" 301LC_IDENTIFICATION="en_GB.UTF-8"
305LC_ALL=en_GB.UTF-8 302LC_ALL=
306</pre> 303</pre>
307 304
308<p> 305<p>
309That's everything. You are now using UTF-8 locales, and the next hurdle is the 306That's everything. You are now using UTF-8 locales, and the next hurdle is the
310configuration of the applications you use from day to day. 307configuration of the applications you use from day to day.

Legend:
Removed from v.1.49  
changed lines
  Added in v.1.50

  ViewVC Help
Powered by ViewVC 1.1.20