* faq-using.xml (faq.using.weirdchars): Rewrite.

This commit is contained in:
Corinna Vinschen 2011-11-21 09:16:23 +00:00
parent c5785504f8
commit 8b0e312bf1
2 changed files with 15 additions and 12 deletions

View File

@ -1,3 +1,7 @@
2011-11-21 Andy Koppe <andy.koppe@gmail.com>
* faq-using.xml (faq.using.weirdchars): Rewrite.
2011-11-17 Corinna Vinschen <corinna@vinschen.de> 2011-11-17 Corinna Vinschen <corinna@vinschen.de>
* faq-using.xml (faq.using.converting-paths): Remove reference to * faq-using.xml (faq.using.converting-paths): Remove reference to

View File

@ -370,18 +370,17 @@ need to set the LC_ALL, LC_CTYPE or LANG environment variables.</para>
<question><para>My application prints international characters but I only <question><para>My application prints international characters but I only
see gray boxes</para></question> see gray boxes</para></question>
<answer> <answer>
<para>Very likely you didn't set your console character set to the preferred <para>In the case of Cygwin programs, this likely means that the
character set before the first Cygwin application was started in the character set as determined by the LC_ALL, LC_CTYPE or LANG environment
console. To make sure the console is using the desired character set, variables does not match the one set on the Text page of the Cygwin Terminal's
make sure that one of the internationalization environment variables options. Setting the locale in the terminal's options will set the LANG
LC_ALL, LC_CTYPE, or LANG is set before the first Cygwin process starts. variable accordingly.</para>
You can do that, for instance, by setting the variable in your <para>Non-Cygwin programs in the Cygwin Terminal do not usually take
<literal>Cygwin.bat</literal> file from which you start your Cygwin shell. heed of the locale environment variables. Instead, they often use the
</para> so-called console codepage, which can be determined with the command
<command>cmd /c chcp</command> followed by the appropriate Windows
<para> codepage number. The codepage number for Cygwin's default UTF-8 character
For a more detailed explanation see the section set is 65001.</para>
<ulink url="http://cygwin.com/cygwin-ug-net/setup-locale.html#setup-locale-console">The Windows Console character set</ulink> in the Cygwin User's Guide.</para>
</answer></qandaentry> </answer></qandaentry>
<qandaentry id="faq.using.multiple-copies"> <qandaentry id="faq.using.multiple-copies">