WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: [SOLVED] UTF-8 in console  (Read 2345 times)

Offline Scampada

  • Full Member
  • ***
  • Posts: 164
[SOLVED] UTF-8 in console
« on: July 06, 2015, 01: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?
« Last Edit: July 06, 2015, 01:51:08 PM by Scampada »
The winning entries in UNIX users' hymns competition were 'What's the buzz, tell me what's happening' and 'Strange Thing Mystifying' songs from A.L.Webber's musical.

Tiny Core Linux. Like Gentoo, except Gentoo is easier.

Offline Misalf

  • Hero Member
  • *****
  • Posts: 1702
Re: UTF-8 in console
« Reply #1 on: July 06, 2015, 01: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. ):
Download a copy and keep it handy: Core book ;)

Offline Misalf

  • Hero Member
  • *****
  • Posts: 1702
Re: UTF-8 in console
« Reply #2 on: July 06, 2015, 01:43:25 PM »
Also you might want to check out the  lang=  boot code.
Download a copy and keep it handy: Core book ;)

Offline Scampada

  • Full Member
  • ***
  • Posts: 164
Re: UTF-8 in console
« Reply #3 on: July 06, 2015, 01: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)
The winning entries in UNIX users' hymns competition were 'What's the buzz, tell me what's happening' and 'Strange Thing Mystifying' songs from A.L.Webber's musical.

Tiny Core Linux. Like Gentoo, except Gentoo is easier.

Offline Misalf

  • Hero Member
  • *****
  • Posts: 1702
Re: [SOLVED] UTF-8 in console
« Reply #4 on: July 06, 2015, 02:03:51 PM »
I guess you meant
Code: [Select]
LANG=en_US.UTF-8 angband
Right?
Download a copy and keep it handy: Core book ;)

Offline Scampada

  • Full Member
  • ***
  • Posts: 164
Re: [SOLVED] UTF-8 in console
« Reply #5 on: July 06, 2015, 02:22:38 PM »
Neither. It was en_US.utf8 :)
The winning entries in UNIX users' hymns competition were 'What's the buzz, tell me what's happening' and 'Strange Thing Mystifying' songs from A.L.Webber's musical.

Tiny Core Linux. Like Gentoo, except Gentoo is easier.

gordon64

  • Guest
Re: [SOLVED] UTF-8 in console
« Reply #6 on: July 24, 2015, 03: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

Offline Misalf

  • Hero Member
  • *****
  • Posts: 1702
Re: [SOLVED] UTF-8 in console
« Reply #7 on: July 24, 2015, 05: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.
Download a copy and keep it handy: Core book ;)