This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Cygwin 1.7: Empty/white-space output when display Chinese characters in GBK charset encoding?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]