WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Terminal UTF-8  (Read 3289 times)

Offline ramonriera

  • Newbie
  • *
  • Posts: 8
Terminal UTF-8
« on: February 18, 2022, 04:34:50 AM »
Hello all !!!

I am a happy user of tc 3 but I have kmap configured in Spanish and in the editor and LeafPad I can work with accents and the letter Ñ but not in the terminal window and in nano editor.

In terminal window I get ? character instead of accented character or blanks in nano editor.

I think it is a configuration issue with UTF-8 in terminal.

Does anyone know how to fix it?

Thanks and greetings,

Ramon

Online patrikg

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 713
Re: Terminal UTF-8
« Reply #1 on: February 18, 2022, 04:56:47 AM »

I think you have to set the X11 keyboard setting.

We have lots of threads talking about that.

Take a look at this thread.

http://forum.tinycorelinux.net/index.php/topic,25540.msg163660.html#msg163660

Offline ramonriera

  • Newbie
  • *
  • Posts: 8
Re: Terminal UTF-8
« Reply #2 on: February 18, 2022, 05:06:54 AM »
patrikg, thanks for your help.

Greetings,

Ramon

Offline jazzbiker

  • Hero Member
  • *****
  • Posts: 934
Re: Terminal UTF-8
« Reply #3 on: February 18, 2022, 05:33:02 AM »
Hi ramonriera,

Have You loaded setfont.tcz? And do you start an appropriate font in Your /opt/bootlocal.sh? In order to have the Cyrillic fonts in console I've added to my bootlocal.sh the line
Code: [Select]
setfont UniCyr_8x16

where UniCyr_8x16 can be found among another fonts located in /usr/local/share/consolefonts. There are a lot of fonts in this directory, I am pretty sure that Spanish is present, but I don't know what exactly the name is.
 

Offline jazzbiker

  • Hero Member
  • *****
  • Posts: 934
Re: Terminal UTF-8
« Reply #4 on: February 18, 2022, 09:04:16 AM »

In terminal window I get ? character instead of accented character or blanks in nano editor.


Sorry, I was not attentive enough and missed that You mentioned the terminal window, so You are talking about the terminal emulator running under one of X servers.
If You are using the default aterm You will not be able to solve the problem, because aterm itself doesn't support the UTF-8. In order to handle UTF-8 properly You need urxvt for example. Then You will need to add to Your ~/.Xdefaults the description like:
Code: [Select]
urxvt*font: xft:DejaVuSansMono:pixelsize=16
I assume that You have loaded dejavu-fonts-ttf.tcz