[Ilugc] [ilugc] How to print unicode charecter in terminal

  • From: 0@xxxxxxxxxxx (0)
  • Date: Sun, 20 Nov 2011 20:19:41 +0530


Problem is that it does not print tamil font clearly. I cannot read that
font. Eventhough I

installed tamil font in my system. What is way to print unicode character
in terminal ?


What terminal emulator are you using ? I have tried tamil characters on 
both xterm (248) and gnome-terminal (2.28.1). Even if you set the 
terminal emulator to UTF-8 mode, xterm just doesn't know tamil while 
gnome-terminal doesn't use fixed width to display tamil characters which 
is what seems like happening in your case. Try the following in the 
command line,

echo -e "#\0340\0256\0205#"

If you notice that the tamil character is not between the '#' characters 
but instead overlaps with one, thats the problem ur facing then. I don't 
know of a solution to this, other than considering tamil characters to 
take twice the width and leave a space between some tamil characters you 
print.

-- 
0

Other related posts: