You are not logged in.

#1 2004-06-06 03:20:43

monolin
Member
Registered: 2004-03-06
Posts: 31

How to implement UTF-8 in archlinux?

Right now the locale shows POSIX is the default.

I need to use en_US.utf8 to use a Chinese input system, but how do I implement it? I typed locale -a and there is only en_IN.utf8.

what procedures shall I take to implement en_US.utf8?


When false is taken for true, true becomes false;
If non-being turns into being, being becomes non-being.

Pages full of fantastic talk
Penned with bitter tears;
All men call the author mad,
None his message hears.

Offline

#2 2004-06-07 13:18:18

bogomipz
Member
From: Oslo, Norway
Registered: 2003-11-23
Posts: 169

Re: How to implement UTF-8 in archlinux?

To create en_US.UTF-8 do this:

localedef -i en_US -f UTF-8 en_US.UTF-8

All of your mips are belong to us!!

Offline

#3 2004-06-08 07:49:08

monolin
Member
Registered: 2004-03-06
Posts: 31

Re: How to implement UTF-8 in archlinux?

I found on this page:
http://neil.chong.com.hk/viewthread.php?tid=3
which has two steps more before running localedef -i en_US -f UTF-8 en_US.UTF-8:

# cd /usr/share/i18n/locales
# cp ../charmaps/UTF-8.gz ./
# gunzip UTF-8.gz
#localedef -i en_US -f UTF-8 en_US.UTF-8

Is it necessary? After I ran these codes, I now can 'grep' en_US.utf8 with locale -a command. But in /usr/share/i18n/locales
there is still no en_US.utf8. Anything goes wrong? I thought there should be a file callled en_US.utf8 that directory.

Do you have any suggestions?


When false is taken for true, true becomes false;
If non-being turns into being, being becomes non-being.

Pages full of fantastic talk
Penned with bitter tears;
All men call the author mad,
None his message hears.

Offline

#4 2004-06-08 08:24:22

bogomipz
Member
From: Oslo, Norway
Registered: 2003-11-23
Posts: 169

Re: How to implement UTF-8 in archlinux?

Observation #1)

There are no files with UTF in their names in /usr/share/i18n/locales, so en_US.utf8 is not supposed to be created in there.

Observation #2)

I got en_US.UTF-8 working without copying the charmap file before the localedef command.

[rohan ref]$ ls /usr/share/i18n/locales|grep -i utf
[rohan ref]$ locale charmap
ISO-8859-1
[rohan ref]$ LC_ALL=en_US.UTF-8
[rohan ref]$ locale charmap
UTF-8
[rohan ref]$ 

All of your mips are belong to us!!

Offline

#5 2005-08-14 13:42:47

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

Re: How to implement UTF-8 in archlinux?

Hi !
I need UTF-8 for a Zope/Plone2 server that is displaying French, Chinese & English content.

On first attempt, here what i got when launching the server :

$ ../runzope
    /usr/lib/python2.4/whrandom.py:38: DeprecationWarning: the whrandom module is is deprecated. Please use the random module.
    DeprecationWarning)
    Error: the specified locale "utf-8" is not supported by your system.
    See your operated system documentation for more information on your locale support.

Since 'locale' showed "us_US" then, i changed it to "fr_FR.UTF-8" :

$ export LANG=fr_FR.UTF-8
$ locale charmap
    UTF-8

What i don't get is that Zope still write the same message (& still can't start). It will start only after i changed from "UTF-8" to "fr_FR" in its conf file.

Does someone know what else should I do for Zope find my AL system supports "utf-8" ?
Thanks for any tip you may have smile


Seeded this month: Arch 80 gig (and Talking~ 2, ~-anywhere 46, Apricity 16)
Desktop @3.3GHz 8 gig RAM, linux-ck
laptop1 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

#6 2005-08-14 18:52:36

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

Re: How to implement UTF-8 in archlinux?

just a guess,
you can only use locales listed with "locale -a"


arch + gentoo + initng + python = enlisy

Offline

#7 2005-08-15 09:38:14

bogomipz
Member
From: Oslo, Norway
Registered: 2003-11-23
Posts: 169

Re: How to implement UTF-8 in archlinux?

Please try changing to "fr_FR.UTF-8" in Zope's config. "UTF-8" is not a locale on its own.


All of your mips are belong to us!!

Offline

#8 2005-10-08 13:15:07

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

Re: How to implement UTF-8 in archlinux?

Thank you for advices
Forgot to reply earlier :oops:
he he, got everything running fine after i let everything related to "LOCAL" to default choices  wink


Seeded this month: Arch 80 gig (and Talking~ 2, ~-anywhere 46, Apricity 16)
Desktop @3.3GHz 8 gig RAM, linux-ck
laptop1 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