You are not logged in.

#1 2005-08-20 19:02:29

fluke
Member
From: Shaoguan Univ., PRC
Registered: 2005-08-12
Posts: 241
Website

I want to set my system encoding to utf8

How can I do that?

Offline

#2 2005-08-21 17:13:40

fluke
Member
From: Shaoguan Univ., PRC
Registered: 2005-08-12
Posts: 241
Website

Re: I want to set my system encoding to utf8

I find the way.
edit the /etc/profile file
set LANG to en_US.utf8

Offline

#3 2005-08-22 15:44:15

FUBAR
Member
From: Belgium
Registered: 2004-12-08
Posts: 1,029
Website

Re: I want to set my system encoding to utf8

And what's the advantage?


A bus station is where a bus stops.
A train station is where a train stops.
On my desk I have a workstation.

Offline

#4 2005-08-22 17:55:26

xerxes2
Member
From: Malmoe, Sweden
Registered: 2004-04-23
Posts: 1,249
Website

Re: I want to set my system encoding to utf8

FUBAR wrote:

And what's the advantage?

utf8 is a multibyte standard which uses iirc up to four bytes for the chars, it covers all of the unicode standard,

a few comparations: 
7bit us-ascii => 2^7=128 possible chars
normal 8bit iso-xxxx => 2^8=256 possible chars
utf8 => 2^32=4294967296 possible chars

edit: and imo it's better to set your locale as well as lots of other things in your ~/.bashrc ,

export LC_ALL="en_US.utf8"


arch + gentoo + initng + python = enlisy

Offline

#5 2005-08-22 19:28:40

IceRAM
Member
From: Bucharest, Romania
Registered: 2004-03-04
Posts: 772
Website

Re: I want to set my system encoding to utf8

1. what does this setting affect
2. how can I use the extra characters
3. are there console "fonts" supporting all the utf8 set

These questions might seem trivial, but I haven't bothered much about utf8 as a system setting, except for X where I use only utf fonts for displaying various things.

Offline

#6 2005-08-22 20:10:52

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: I want to set my system encoding to utf8

utf8 doesn't affect en_US (and en_GB) that much - it mainly allows for accented characters of all shapes and sizes (which we don't have on our keyboards)...

Offline

#7 2005-08-23 02:23:51

whisky
Member
From: Paris, France
Registered: 2005-05-06
Posts: 22
Website

Re: I want to set my system encoding to utf8

well, actually, this helps a lot when you use other languages than those based on Latin letters., especially  for those double byte/multibytes languages (like CJK - chinese, japanese and korean etc).

And to type a accented character on US/GB keyboard, I was told that one can use deadkey to do that, but I have no clue on how to do this exactly.. tongue

Offline

#8 2005-08-23 04:13:26

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: I want to set my system encoding to utf8

Using accented characters on US/GB keyboard is quite easy wink. Type:
setxkbmap ca_enhanced
to get the French-Canadian keyboard and you're in business!
Typing the / key will give you é.  You'll need dead keys for the other accents. Voilà!

Offline

#9 2005-08-23 05:17:45

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: I want to set my system encoding to utf8

yeah an it also borks centericq and other ncurses apps... instead of the line drawing chars, I got a bunch of accented A's

Offline

#10 2005-08-23 05:30:47

fluke
Member
From: Shaoguan Univ., PRC
Registered: 2005-08-12
Posts: 241
Website

Re: I want to set my system encoding to utf8

Yes, it's very useful when you are using CJK.
Generally, we use input method software like SCIM(Smart Chinese Input Method) to type Chinese characters.

Offline

#11 2005-12-06 23:11:01

oscar
Member
From: Kiruna, Sweden
Registered: 2004-08-13
Posts: 457

Re: I want to set my system encoding to utf8

Is there any plan of moving arch from iso-8859-1 to unicode (utf8)?
I'm trying to make it work, but some man-pages aren't working anymore, and I'm not sure I actually convinced my entire system that it should speak unicode sad


To err is human... to really foul up requires the root password.

Offline

#12 2005-12-06 23:16:40

codemac
Member
From: Cliche Tech Place
Registered: 2005-05-13
Posts: 794
Website

Re: I want to set my system encoding to utf8

phrakture wrote:

yeah an it also borks centericq and other ncurses apps... instead of the line drawing chars, I got a bunch of accented A's

I use utf8, and I don't get that problem.  Not sure why...  tongue

Offline

#13 2005-12-07 10:51:25

jakob
Member
From: Berlin
Registered: 2005-10-27
Posts: 419

Re: I want to set my system encoding to utf8

When I set my profile to de_DE-utf8 and rebooted my system, everything that was loaded before the locale settings was shown in strange characters, a bit strange shown, i try to explain:

Kernel loads, everythin is fine, udev daemon is started and all written on the screen as it should be, but when it comes to the country settings (or locale, cant remember for sure), everything that was loaded before "is switched" to hyroglyphs... all stuff that loads after the country settings is written again properly... System starts w/o problem but its not very nice...

This only happens when i set "de_DE-utf8" in locale... if not, it doesnt "switch"...

Aren't the initscripts utf8-able?

greetings,

hellwoofa

Offline

#14 2005-12-07 13:10:12

pikass
Member
From: Schwartz space
Registered: 2005-11-28
Posts: 85

Re: I want to set my system encoding to utf8

Edit your rc.conf (keymap, fonts etc.), worked for me.

Offline

#15 2006-01-03 15:23:40

kozaki
Member
From: London >. < Paris
Registered: 2005-06-13
Posts: 671
Website

Re: I want to set my system encoding to utf8

pikass wrote:

Edit your rc.conf (keymap, fonts etc.), worked for me.

Trying to set this up.
Could pikass or someone else show an example ?
I've set my locale to fr_FR.UTF-8, but didn"t change rc.conf accordingly, mostly because I'm not sure which line has to change

Since then, console output (like vim's) cannot show any accent letter.

What one should change in its /etc/rc.conf ? should KEYMAP, CONSOLEFONT & CONSOLEMAP simply be set to 'xx_XX.UTF-8' ?
Here's my initial conf :

HARDWARECLOCK="localtime"
TIMEZONE=Europe/Paris
KEYMAP=fr
CONSOLEFONT="lat9w-16"
CONSOLETRANSLATION="8859-15_to_uni"
CONSOLEMAP="8859-15"

Seeded last month: Arch 50 gig, derivatives 1 gig
Desktop @3.3GHz 8 gig RAM, linux-ck
laptop #1 Atom 2 gig RAM, Arch linux stock i686 (6H w/ 6yrs old battery smile) #2: ARM Tegra K1, 4 gig RAM, ChrOS
Atom Z520 2 gig RAM, OMV (Debian 7) kernel 3.16 bpo on SDHC | PGP Key: 0xFF0157D9

Offline

Board footer

Powered by FluxBB