Tiny Core Linux

dCore Import Debian Packages to Mountable SCE extensions => dCore X86 => Topic started by: hiro on September 07, 2015, 03:34:49 PM

Title: utf-8
Post by: hiro on September 07, 2015, 03: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?
Title: Re: utf-8
Post by: chattrhand on September 09, 2015, 05: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
Title: Re: utf-8
Post by: curaga on September 09, 2015, 05: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.
Title: Re: utf-8
Post by: Jason W on September 09, 2015, 11: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.
Title: Re: utf-8
Post by: hiro on September 09, 2015, 12:28:01 PM
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.
Title: Re: utf-8
Post by: sm8ps on September 11, 2015, 06:07:42 PM
There is a section about localisation in the wiki:
http://wiki.tinycorelinux.net/dcore:installations#localisation (http://wiki.tinycorelinux.net/dcore:installations#localisation)
Title: Re: utf-8
Post by: hiro on September 11, 2015, 07: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