LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-05-2015, 12:34 PM   #1
mangya
Member
 
Registered: Jul 2015
Distribution: CentOS
Posts: 84

Rep: Reputation: Disabled
How do i display unicode symbols in tty ?


Hello

I am using arch linux. I have this text file (attachment 1), which i use regularly for my documentation in text files. Earlier I was using gnome-terminal and vim to edit text files.

Recently, i have started to practice linux in tty console, so that i become more proficient on boxes without gui. But the problem is - in console, the symbols in text file are not visible (attachment 2).

I tried kmscon, but was wondering is there any native way of achieving without using wrapper.

I also tried this:
Code:
setfont /usr/share/kbd/consolefonts/<font> -m 8859-2
Where <font> is font file under that directory. But not working either.

My locale is as follows:
Code:
$ localectl status
   System Locale: LANG=en_US.UTF-8
       VC Keymap: n/a
      X11 Layout: n/a
How do i make symbols (unicode) appear in tty consoles?

Thanks
Attached Thumbnails
Click image for larger version

Name:	Attachment-1.jpg
Views:	57
Size:	177.6 KB
ID:	19737   Click image for larger version

Name:	Attachment-2.jpg
Views:	57
Size:	123.5 KB
ID:	19738  

Last edited by mangya; 10-05-2015 at 12:36 PM.
 
Old 10-06-2015, 07:49 AM   #2
Peter_M
LQ Newbie
 
Registered: Dec 2012
Location: Cirencester, England
Distribution: Linux Mint 17 (Mate)
Posts: 3

Rep: Reputation: Disabled
I don't think you can do what you want with the very basic TTY.

I don't know a definitive answer but TTY evolved long before Unicode and is a 7 or 8 bit format. This is consistent with the first 127 characters (US-ASCII) and 255 (ISO-8859-1) i.e. x'0' to x'FF'. The characters in your examples are not in the first 255. On my system the keyboard has been defined as English'UK extended which gives European accents. I enclose my settings.

peter@library:~$ localectl status
System Locale: LANG=en_GB.UTF-8
LANGUAGE=en_GB:en
VC Keymap: n/a
X11 Layout: gb
X11 Model: pc105
X11 Variant: extd
peter@library:~$

You should be able to set up your keyboard settings to allow the accents with TTY to be entered directly. Otherwise you need an editor which supports full Unicode and a font that contains the characters. Sorry not to give you the answer you wanted...Peter
 
1 members found this post helpful.
Old 10-06-2015, 08:34 AM   #3
mangya
Member
 
Registered: Jul 2015
Distribution: CentOS
Posts: 84

Original Poster
Rep: Reputation: Disabled
Thanks Peter, appreciate your help. I guess I should stick to kmscon then. I have set kmscon to tty3.

Thanks
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[FC4] Can't enter Unicode Symbols directly polemon Linux - Newbie 5 07-25-2009 12:41 PM
New Symbols for LaTex using Unicode Herminator53 Linux - Newbie 2 07-25-2009 04:47 AM
Getting unicode characters (Japanese) to display properly? Azzy Debian 2 03-04-2009 10:22 AM
Sun Java unicode display problem moo-cow Programming 2 01-08-2007 05:55 AM
Display Unicode Code from a String in Java? rusty_turkey Programming 3 08-10-2006 05:36 PM


All times are GMT -5. The time now is 03:11 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration