View previous topic :: View next topic |
Author |
Message |
Nick W l33t
Joined: 07 Dec 2003 Posts: 684
|
Posted: Tue Jul 18, 2006 3:55 pm Post subject: Troubleshooting UTF-8 |
|
|
Hi all,
I have been working my way through the UTF-8 Guide but fear i must have done something wrong, and am not certain how to even tell if i have genuine UTF-8 encoding working on my KDE based laptop.
I just checked a Mutt email i'd sent (after using convm and iconv to change the config files to utf-8 and the headers say:
Code: |
Content-Type: text/plain; charset=us-ascii
|
When i run locale with no arguments though, i get this:
Code: |
LANG=
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=en_US.UTF-8
|
though why i have en_US when in /etc/env.d/02locale i have the following, is quite beyond me....
Code: |
LC_ALL="en_GB.UTF-8"
|
Can anyone help me troubleshoot this a bit? Here are a couple of things i *think* i should be doing but dont know how;
- checking to see if the mutt rc files are truly utf-8
- checking that localedef really did make the locale en_GB.UTF-8
- checking to see if glibc is working properly
As you can see, im a bit lost, so any guidance would be much appreciated, thanks! |
|
Back to top |
|
|
Nuteater Apprentice
Joined: 25 Sep 2003 Posts: 193 Location: Jyväskylä, Finland
|
Posted: Wed Jul 19, 2006 7:20 pm Post subject: |
|
|
This might be a silly question, but did you use any non-ascii characters in
the email you sent with Mutt? By default Mutt sends mail either in ascii, iso-8859-1
or utf-8 based on what charset the message can be perfectly converted to - so
if you use only ascii characters, the mail is sent as ascii, but if you use e.g. some
European diacritics covered by iso-8859-1, the mail is sent as iso-8859-1. Only if you
include characters not covered by either of these, the mail is sent as utf-8.
See the help on 'send_charset' in the Mutt manual for more details.
About LC_ALL being set to the wrong value... are you sure the LC_* -variables are
not set again in your .bashrc or somesuch? _________________ I am Nuteater, hear me roar. |
|
Back to top |
|
|
Nick W l33t
Joined: 07 Dec 2003 Posts: 684
|
Posted: Wed Jul 19, 2006 7:51 pm Post subject: |
|
|
Ahh...
Well that covers Mutt then, as it was indeed just a plain email. You were bang on the money with LC_ALL aswell it was set in .bashrc though i cant remember ever doing that...
thanks a lot for the reply, i found i could set the encoding in Konsole to utf-8 which made the danish chars in some of my incoming email show up correctly aswell, so it appears at least that i do have it all sorted.
thanks again. |
|
Back to top |
|
|
Nuteater Apprentice
Joined: 25 Sep 2003 Posts: 193 Location: Jyväskylä, Finland
|
Posted: Wed Jul 19, 2006 8:08 pm Post subject: |
|
|
No problem .
And of course: if you want mail to be always sent as utf-8, you can just
set send_charset to "utf-8" instead of the default. _________________ I am Nuteater, hear me roar. |
|
Back to top |
|
|
|
|
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
|
|