WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: utf-8  (Read 2506 times)

Offline hiro

  • Hero Member
  • *****
  • Posts: 1217
utf-8
« on: September 07, 2015, 12:34:49 PM »
did somebody else need utf-8 so far? how did it go? is there a recommended procedure to get utf-8 working on dcore?

Offline chattrhand

  • Full Member
  • ***
  • Posts: 140
Re: utf-8
« Reply #1 on: September 09, 2015, 02:42:49 AM »
hi TinyCoreTeam

I am using TinyCoreLinux with german keyboard settings. 

With TC 6.0 I the standard editor now has syntax coloring, very fine. If I open an older .txt file, a popup warns that the text has been UTF-8 transcoded. After saving this file this warning remains silent.

The special chars like  @~²³{[]}\|µ  are handled correctly on both editor and terminal, the german umlauts äöüßÄÖÜ are displayed right on the editor, but not on the Terminal, there it
shows only question marks '?' instead.

Btw, does this problem also exist on french, spanish and other keyboards?

Is there something known how to solve this?

greetings
TinyCore, SliTaz, LinuxMint, Tails, Mac ...

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 10957
Re: utf-8
« Reply #2 on: September 09, 2015, 02:44:37 AM »
This is the dCore area, but in general you need an utf8 capable terminal with a suitable font, aterm is not one.
The only barriers that can stop you are the ones you create yourself.

Offline Jason W

  • Administrator
  • Hero Member
  • *****
  • Posts: 9730
Re: utf-8
« Reply #3 on: September 09, 2015, 08:37:35 AM »
I am sure there are other dCore users using utf-8 or similar, I am sure it is just a matter of importing the locales package and setting up the environment.   I have done it with other languages when testing.

Offline hiro

  • Hero Member
  • *****
  • Posts: 1217
Re: utf-8
« Reply #4 on: September 09, 2015, 09:28:01 AM »
I would like to avoid having any language specific stuff if possible, i always was scared of that locales package :)
I did just sce-import locales and it looks like all stuff is set to en_US.UTF8, seems good.

*edit that's because LANG=en_US.UTF8 is specified in the .profile.
the locale isn't really generated i think.
« Last Edit: September 09, 2015, 09:40:15 AM by hiro »

Offline sm8ps

  • Sr. Member
  • ****
  • Posts: 338
Re: utf-8
« Reply #5 on: September 11, 2015, 03:07:42 PM »
There is a section about localisation in the wiki:
http://wiki.tinycorelinux.net/dcore:installations#localisation

Offline hiro

  • Hero Member
  • *****
  • Posts: 1217
Re: utf-8
« Reply #6 on: September 11, 2015, 04:00:42 PM »
Thanks, I missed that.
This is what I did as root:
echo 'en_US.UTF-8 UTF-8' > /etc/locale.gen
locale-gen -archive