Edit

the problem is ubuntu machine can't display \u03bb as greek lambda symbol

ubuntu is remote:

[ubuntu@ubuntu:~]$echo -e "\xce\xbb\x0a" 
λ 

[ubuntu@ubuntu:~]$echo -e "\u03bb" 
\u03BB 

this is local:

matizmabel@Casper ~ 
$ echo -e "\u03bb" 
λ 

matizmabel@Casper ~ 
$ echo -e "\xce\xbb" 
λ 

matizmabel@Casper ~ 
$

I use cygwin mintty terminal.

I use Dejavu Sans Mono and this:

$ locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_ALL=

I ssh into ubuntu headless server, and have this issue. Please fix my unicode display problem.

share|improve this question
    
any luck with $ echo -e "\u03bb" Doing \x might be just for when it's two nibbles like \x41 – barlop Jul 11 '15 at 15:02
    
edited, @barlop nop – facebook Jul 11 '15 at 15:04
    
Strange. BTW I have the same as you for my locale pastebin.com/raw.php?i=52cKQhem – barlop Jul 11 '15 at 15:06
    
can you display greek letter lambda? @barlop, I used to display it before but time has passed now I it can't. – facebook Jul 11 '15 at 15:09
    
yes. What is your version of echo? pastebin.com/raw.php?i=d0PgZ47E – barlop Jul 11 '15 at 15:10

See http://www.utf8-chartable.de/unicode-utf8-table.pl

Unicode code point = U+039B

character = Λ

UTF-8 (hex.) = ce 9b

 $ echo -e "\xCE\x9B"

 Λ

If the problem is remote only, likely that "echo" don't undeerstand the "\u039B" escape. Please note that "\u" is not reported as escape sequence in echo coreutils manuals. nor in POSIX

http://pubs.opengroup.org/onlinepubs/9699919799/utilities/echo.html

To check it

$ echo -ne "\xce\xbb" |od -x
0000000 bbce
0000002


$  echo -ne "\u03bb" |od -x
0000000 bbce
0000002
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.