Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
HOWTO: Using UTF-8 on Gentoo (edited)
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3  
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
numerodix
l33t
l33t


Joined: 18 Jul 2002
Posts: 743
Location: nl.eu

PostPosted: Mon Oct 11, 2004 5:53 pm    Post subject: Reply with quote

obmun wrote:
@numerodix:

Console and UTF-8? Bad mixture. Take a look at this post. There I analize the problem. Conclusion? It's a kernel problem.


Yes thanks, I actually saw that one a little while ago. I can confirm what you said about jagged input, that's the only malfunction I have now.

But on to something else, I've set my locale according to this thread and everything seems to work quite well. One question in relation to kmail.. I get an email where the specific Norwegian characters are displayed as boxes. Then I click reply and get a compose window, now they show up fine. What's the deal? The email header follows.

Code:
MIME-Version: 1.0
Content-Type: multipart/alternative;
  boundary="----=_NextPart_000_0005_01C4AF97.EF828F50"
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180

This is a multi-part message in MIME format.

------=_NextPart_000_0005_01C4AF97.EF828F50
Content-Type: text/plain;
 charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<snip>

_________________
undvd - ripping dvds should be as simple as unzip
Back to top
View user's profile Send private message
foosh
Apprentice
Apprentice


Joined: 11 Jan 2004
Posts: 231
Location: STL

PostPosted: Tue Oct 12, 2004 10:47 pm    Post subject: Reply with quote

hmm
_________________
http://wustlog.blogspot.com
Back to top
View user's profile Send private message
noathustra
Tux's lil' helper
Tux's lil' helper


Joined: 08 Sep 2003
Posts: 129
Location: NYC

PostPosted: Sat Oct 16, 2004 12:37 am    Post subject: Reply with quote

This is a great Howto and discussion. Well done. Perhaps someone here can help with my Gecko browser locale difficulties. When I use Firefox/Mozilla/Epiphany on certain sites, the browser segfaults. I ran strace on it and found that just before it crashed there were problems finding the file:
/usr/share/locale/en/LC_MESSAGES/libc.mo

I am using en_US.utf for LC_ALL and ja_JP.utf for LC_CTYPE.

Any ideas how to generate the libc.mo file?
Back to top
View user's profile Send private message
Phase_
n00b
n00b


Joined: 09 May 2004
Posts: 37
Location: Sweden

PostPosted: Wed Oct 20, 2004 2:13 am    Post subject: Reply with quote

Hey,

I'm having some trouble getting UTF-8 to work properly with GTKmm.
UTF-8 support is there, as can be seen through Glib::get_charset ().
But whenever I try to run locale_to_utf8 () with a UTF-8 formatted string, the app. just dies with the error "Aborted".

I have tried editing added /etc/gtk/gtkrc.utf8 and ~/.gtkrc, nothing seems to work.
Anyone got a clue?
Back to top
View user's profile Send private message
SaFrOuT
Apprentice
Apprentice


Joined: 08 Jul 2003
Posts: 256
Location: Egypt

PostPosted: Thu Oct 21, 2004 1:50 pm    Post subject: Reply with quote

i don't knwo if i am that dumb but after reading this article i can't figure out how to change my encoding fro Posix to UTF8

i need to read and write arabic doc sometimes sice i am an arabic user

can u help me in an easier language plz from those outputs

Code:

home safrout # locale
LANG=
LC_CTYPE="POSIX"
LC_NUMERIC="POSIX"
LC_TIME="POSIX"
LC_COLLATE="POSIX"
LC_MONETARY="POSIX"
LC_MESSAGES="POSIX"
LC_PAPER="POSIX"
LC_NAME="POSIX"
LC_ADDRESS="POSIX"
LC_TELEPHONE="POSIX"
LC_MEASUREMENT="POSIX"
LC_IDENTIFICATION="POSIX"
LC_ALL=
home safrout # locale -a
C
POSIX
ar_EG
ar_EG.cp1256
ar_EG.ibm864
ar_EG.iso88596
ar_EG.utf8
en_US
en_US.cp1252
en_US.iso88591
en_US.utf8
home safrout #             


i use KDE-3.3.1 , kernel 2.6.9-ck1 and Xfree
Back to top
View user's profile Send private message
anderlin
Tux's lil' helper
Tux's lil' helper


Joined: 29 Nov 2003
Posts: 149
Location: Trondheim, Norway

PostPosted: Fri Nov 19, 2004 9:42 am    Post subject: Reply with quote

I want to convert all my filenames to UTF-8, and want to use convmv. How do I find out what encoding to encode from?
Back to top
View user's profile Send private message
>Octoploid<
n00b
n00b


Joined: 27 Jun 2004
Posts: 57

PostPosted: Fri Nov 19, 2004 1:17 pm    Post subject: Reply with quote

anderlin wrote:
I want to convert all my filenames to UTF-8, and want to use convmv. How do I find out what encoding to encode from?

-f iso88591
should work...
Back to top
View user's profile Send private message
bmichaelsen
Veteran
Veteran


Joined: 17 Nov 2002
Posts: 1277
Location: Hamburg, Germany

PostPosted: Sun Nov 21, 2004 4:08 am    Post subject: Reply with quote

http://gentoo-wiki.com/HOWTO_Make_your_system_use_unicode/utf-8
Back to top
View user's profile Send private message
MaxDamage
l33t
l33t


Joined: 03 Jan 2004
Posts: 650
Location: Oviedo, Spain

PostPosted: Tue Feb 08, 2005 9:55 pm    Post subject: Reply with quote

When burning a CD with UTF8 filenames, the filenames are wrongly displayed when accessing the CD from a windows machine.

Any way of forcing the program to burn the CD using iso8859-15?
_________________
La PDA de tungsteno
Back to top
View user's profile Send private message
tomga
n00b
n00b


Joined: 13 Jul 2002
Posts: 68

PostPosted: Thu Feb 17, 2005 2:39 pm    Post subject: Reply with quote

MaxDamage wrote:
When burning a CD with UTF8 filenames, the filenames are wrongly displayed when accessing the CD from a windows machine.

Any way of forcing the program to burn the CD using iso8859-15?


got the same problem. tried several configs but no solution. seems windows xp not capable of reading proper utf.

i also got a problem with ascii mails and kmail.
when getting a pure ascii mail with german umlaute I got those little squares instead of the right character (encoding -> auto).
the only way to avoid this is that I change encoding form auto to ISO-8895-15, then i get all the umlaute in the asscii mails but all utf-8 mails are wrong.

anyone got this solved?
Back to top
View user's profile Send private message
bi3l
Apprentice
Apprentice


Joined: 06 Feb 2003
Posts: 268
Location: France

PostPosted: Thu Feb 17, 2005 5:38 pm    Post subject: Reply with quote

You can try '-input-charset utf8' as an mkisofs option.
Back to top
View user's profile Send private message
AFCommando
n00b
n00b


Joined: 12 Feb 2003
Posts: 59

PostPosted: Tue Feb 22, 2005 8:40 am    Post subject: Reply with quote

Hi all,

I can't say how much this thread has helped me with using UTF-8. This thread is awesome :D

Everything is running fine for me except for one thing, and thats viewing japanese filenames over samba. If I ssh into my fileserver and do ls, I see it just fine but if I ls the share I won't see it correctly. My temporary fix that I find strange is having

unix charset = CP850

in my smb.conf for some reason that makes things work. When I mount the share on my desktop I don't need any options for smbmount. Even if i tried iocharset=utf8,codepage=cp850 it doesn't work unless i added that unix charset to my smb.conf. Anyone have any ideas why this is happening? Also if I don't have unix charset = CP850, my win2k box displays the filenames correctly but if that option is there, it doesn't.

Both my desktop and my fileserver have NLS UTF-8 in the kernel and i set SMBFS NLS to UTF-8 also.

Any help would be appreciated.
Back to top
View user's profile Send private message
lordello
n00b
n00b


Joined: 13 Aug 2004
Posts: 43
Location: Rio de Janeiro - Brasil

PostPosted: Tue Mar 15, 2005 5:02 am    Post subject: unicode use flag Reply with quote

I'm sorry to post in this old topic, but i want to keep this information together for later research.
When i use UTF-8 locale, i need to set the unicode use flag?
Have any other flag to set?
I need to recompile programs other than that have unicode flag?
I know that this question can be stupid, but it's not clear to me.
Thanks.
Back to top
View user's profile Send private message
supermihi
Guru
Guru


Joined: 09 Feb 2005
Posts: 348

PostPosted: Sun Mar 27, 2005 1:44 pm    Post subject: Reply with quote

One question: is the @euro modifier needed for UTF8 locales?
As UTF-8 should be a superset of iso8859-15, could it be that it's not needed? I'm asking because I found that there was no entry for de_DE.UTF-8@euro in /usr/lib/X11/locale/locale.alias, so I still got the Xlib errors.
_________________
"You may say I'm a dreamer, but I'm not the only one."
Back to top
View user's profile Send private message
carpman
Advocate
Advocate


Joined: 20 Jun 2002
Posts: 2202
Location: London - UK

PostPosted: Wed Apr 06, 2005 2:30 pm    Post subject: Reply with quote

Hello so how would i go about creating

Code:

/usr/lib/X11/locale/en_GB.UTF-8


tried

Code:

localedef -i en_GB -f UTF-8 en_GB.UTF-8



I am only getting problems with one app, tomboy, which is giving error

Code:

 tomboy

(Tomboy:18041): Gdk-WARNING **: locale not supported by Xlib

(Tomboy:18041): Gdk-WARNING **: cannot set locale modifiers
Binding key '<Alt>F12' for '/apps/tomboy/global_keybindings/show_note_menu'
Binding key '<Alt>F11' for '/apps/tomboy/global_keybindings/open_start_here'
The program 'Tomboy' received an X Window System error.

_________________
Work Station - 64bit
Gigabyte GA X48-DQ6 Core2duo E8400
8GB GSkill DDR2-1066
SATA Areca 1210 Raid
BFG OC2 8800 GTS 640mb
--------------------------------
Notebook
Samsung Q45 7100 4gb
Back to top
View user's profile Send private message
devil_ua
Tux's lil' helper
Tux's lil' helper


Joined: 23 Jun 2004
Posts: 128
Location: Kiev, Ukraine

PostPosted: Mon Nov 21, 2005 7:24 pm    Post subject: Reply with quote

http://saber.gentoo.org.ua/~devil/unicode-guide.html
_________________
Web developer & High-load application deployer
Web Site: http://simonov.me
E-Mail: alex@simonov.me
Back to top
View user's profile Send private message
Cintra
Advocate
Advocate


Joined: 03 Apr 2004
Posts: 2111
Location: Norway

PostPosted: Thu Dec 15, 2005 7:53 pm    Post subject: Reply with quote

ref page 1 of this thread
Quote:
If you get a
Code:
Gdk-WARNING **: locale not supported by Xlib
error when running GTK/Gnome apps and a
Code:
Qt: Locales not supported on X server
when running Qt/KDE apps then you should dive into the /usr/X11R6/lib/X11/locale directory. Check that your desired locale is listed in locale.dir. The mapping between shortened names and full names for locales is in locale.alias. If those files are ok then something more fundamental is broken and I suggest you check out the XFree86 bugzilla or the Xorg equivalent depending on which one you are using.
I have the above warnings in a few places, but what the above quote 'skates past' is the case where, for example en_DK has no entry in either the locale.dir or locale.alias files... what then?

Any ideas on this?
_________________
"I am not bound to please thee with my answers" W.S.
Back to top
View user's profile Send private message
bludger
Guru
Guru


Joined: 09 Apr 2003
Posts: 389

PostPosted: Sun Dec 18, 2005 9:51 am    Post subject: Reply with quote

This is an annoying "feature" of xlib. en_DK does not seem to be supported in xlib. I guess the only workaround is to map en_DK to some supported locale in the locale.dir file. This is clearly sub optimal as you probably lose the features of en_DK that you wanted in the first place.

Does anyone know of a way to edit xlib locales? It must be somewhere in the code. The current locale system probably works ok for en_US users or en_GB, but for the large number of international english speaking expats, it is a pain in the arse. What is needed is a simple way of cusomising the locales for the system and for xlib, so that you can have a mix of English language and european currency and european date format (with english words). It is possible to do this for the base system, but no way that I know of of customising the xlib locales.

Does anyone know a way of doing this?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Goto page Previous  1, 2, 3
Page 3 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum