Tiny Core Linux

Tiny Core Base => TCB Q&A Forum => Topic started by: Scampada on July 06, 2015, 04:22:51 PM

Title: [SOLVED] UTF-8 in console
Post by: Scampada on July 06, 2015, 04:22:51 PM
Is it possible to get UTF-8 working in CLI mode in TC?
I thought that UTF is supported by default by TC, didn't pay attention to this before. Looks like I was wrong.

If it's impossible, which terminal should I use in Xvesa that is supporting UTF and isn't as big and clumsy as Windows?
Title: Re: UTF-8 in console
Post by: Misalf on July 06, 2015, 04:41:55 PM
I use  urxvt.tcz .
But I couldn't get the configuration to be perfect.

This is what gets displayed if I hold Right-Alt and press numbers and letters in ATerm:
Code: [Select]
??????{[]}\@???~??^|?????
Many keys don't output anything. Others produce just question marks.

This is what URxvt spits out:
Code: [Select]
¹²³¼½¬{[]}\¸@ł?¶ŧ???øþ¨~æſðđŋħ?ĸł˝^?|»«¢???µ·??
Still some question marks. Also no € symbol. ):
Title: Re: UTF-8 in console
Post by: Misalf on July 06, 2015, 04:43:25 PM
Also you might want to check out the  lang=  boot code.
Title: Re: UTF-8 in console
Post by: Scampada on July 06, 2015, 04:50:52 PM
Quote
Also you might want to check out the  lang=  boot code.
That's it. I googled thoroughly and solved the problem doing

lang=en_US.utf angband

(for I do not wnat to change the boot codes themselves)
Title: Re: [SOLVED] UTF-8 in console
Post by: Misalf on July 06, 2015, 05:03:51 PM
I guess you meant
Code: [Select]
LANG=en_US.UTF-8 angband
Right?
Title: Re: [SOLVED] UTF-8 in console
Post by: Scampada on July 06, 2015, 05:22:38 PM
Neither. It was en_US.utf8 :)
Title: Re: [SOLVED] UTF-8 in console
Post by: gordon64 on July 24, 2015, 06:11:04 AM
Hi

I hope you guys don't mind me replying to a solved post. But in case others search and find it....

Not all terminals are UTF-8 compliant, I found a quickish test that might help

Code: [Select]
echo -e '\xe2\x82\xac\'
If compliant, with luck you should see the Euro symbol, some terminals may work with double quotes but i use single quote marks

lxterminal and gnome-terminal might be ideal candidates to use if you are having issues with the smaller terminals?

good luck
Title: Re: [SOLVED] UTF-8 in console
Post by: Misalf on July 24, 2015, 08:11:15 AM
Using URxvt, I can display the € (Euro) symbol using above command, but can not use the keyboard to type it, unless in Bash. I don't know enough about localization to solve this for myself. Using Bash might be a workaround.