I did check the environment, And set the same settings like your's, But the result still got 3
Some thing different is that there are some warring from perl, And I have no clue how to deal with it. Thanks ------------------------------------------------------------ [EMAIL PROTECTED] perlPratice]# set | grep SHELL SHELL=/bin/bash SHELLOPTS=braceexpand:emacs:hashall:histexpand:history:interactive-comments: monitor [EMAIL PROTECTED] perlPratice]# set | grep LC_ALL LC_ALL=C [EMAIL PROTECTED] perlPratice]# set | grep LANG LANG=en_US.en [EMAIL PROTECTED] perlPratice]# perl -le 'print length("我")' perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LANG = "en_US.en" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). 3 [EMAIL PROTECTED] perlPratice]# ---------------------------------------------------------------------------- ------- -----Original Message----- From: Jeff Pang [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 16, 2007 3:22 PM To: Neil Cc: 'Thomas Yan'; beginners@perl.org Subject: Re: Chinese word problem Neil 写道: > It's wired! > I did the same thing and got the result of 3 > > perl -le 'print length("我")' > 3 > Pls see the attachment How about your shell environment? For me something are: SHELL=/bin/bash LC_ALL=C LANG=en_US.en -- Jeff Pang http://home.arcor.de/jeffpang/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/