| 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.48 2008/05/19 21:08:38 swift Exp $ --> |
2 | <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/utf-8.xml,v 1.49 2008/10/10 16:03:49 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.25</version> |
28 | <version>2.26</version> |
| 29 | <date>2007-04-17</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> |
| 34 | <title>What is a Character Encoding?</title> |
34 | <title>What is a Character Encoding?</title> |
| … | |
… | |
| 230 | <title>Setting the Locale</title> |
230 | <title>Setting the Locale</title> |
| 231 | <body> |
231 | <body> |
| 232 | |
232 | |
| 233 | <p> |
233 | <p> |
| 234 | There is one environment variable that needs to be set in order to use our new |
234 | There is one environment variable that needs to be set in order to use our new |
| 235 | UTF-8 locales: <c>LANG</c> (you can override this variable with the |
235 | UTF-8 locales: <c>LC_CTYPE</c> (or optionally <c>LANG</c>, if you want to change |
| 236 | <c>LC_ALL</c> setting as well). There are also many different ways to set it; |
236 | the system language as well). There are also many different ways to set it; some |
| 237 | some people prefer to only have a UTF-8 environment for a specific user, in |
237 | people prefer to only have a UTF-8 environment for a specific user, in which |
| 238 | which case they set them in their <path>~/.profile</path> (if you use |
238 | case they set them in their <path>~/.profile</path> (if you use <c>/bin/sh</c>), |
| 239 | <c>/bin/sh</c>), <path>~/.bash_profile</path> or <path>~/.bashrc</path> (if you |
239 | <path>~/.bash_profile</path> or <path>~/.bashrc</path> (if you use |
| 240 | use <c>/bin/bash</c>). |
240 | <c>/bin/bash</c>). More details and best practices can be found in our <uri |
|
|
241 | link="/doc/en/guide-localization.xml">Locallization Guide</uri>. |
| 241 | </p> |
242 | </p> |
| 242 | |
243 | |
| 243 | <p> |
244 | <p> |
| 244 | Others prefer to set the locale globally. One specific circumstance where |
245 | Others prefer to set the locale globally. One specific circumstance where |
| 245 | the author particularly recommends doing this is when |
246 | the author particularly recommends doing this is when |