This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Cygwin 1.7: Empty/white-space output when display Chinese characters in GBK charset encoding?
Thank you Andy, you are right.
I tried the following, they all shown something instead of
empty/white-spaces
1. added 'chcp 850' in cygwin.bat file (before bash log,
2. put gwin window into full-screen mode(Alt+Enter)
3. changed the font of Cygwin window to 'New SimSun'
Andy Koppe wrote:
>
> 2009/12/14 LiuYan åç:
>>
>> The only unexpected thing is the empty output of GBK-encoded chinese
>> characters when LANG is xxxx.UTF-8.
>>
>> I mean it should display something visible(malformed characters, squares
>> or
>> whatever visible characters) regardless the LANG setting.
>>
>> echo -e "Chinese characters in GBK encoding: [\xba\xba\xd7\xd6] Â--
>> Output
>> will be [ Â Â] in Cygwin 1.7"
>
> I'm getting:
>
> $ echo -e "Chinese characters in GBK encoding: [\xba\xba\xd7\xd6]"
> Chinese characters in GBK encoding: [ââââ]
>
> (In case they don't show up, that's four grey blocks in the brackets,
> representing invalid UTF-8 bytes.)
>
> Same both with the default raster font and with Lucida Console. With
> the default raster font, the output is limited to your console
> codepage, which may not have that replacement character, so try it
> with a different font that puts the console into Unicode mode.
>
> Andy
>
> --
> Problem reports: http://cygwin.com/problems.html
> FAQ: http://cygwin.com/faq/
> Documentation: http://cygwin.com/docs.html
> Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
>
>
>
--
View this message in context: http://old.nabble.com/Cygwin-1.7%3A-Empty-white-space-output-when-display-Chinese-characters-in-GBK-charset-encoding--tp26774467p26779901.html
Sent from the Cygwin list mailing list archive at Nabble.com.
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple