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