Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

mutt and danish characters (æøå)

65 views
Skip to first unread message

Jeppe Larsen

unread,
Aug 15, 2004, 7:16:44 AM8/15/04
to
I just started using mutt and I really like it, but I have som problems
with the danish characters (æ ø å Æ Ø Å). They either appear as ?'s or
as \346 \370 and so on. But only in mutt. If I read my real with more,
less, cat or some texteditor like vi or emacs, the characters is
displayed just fine. So I suppose it is something wrong with mutt, and
not my term settings.
I have tried to change the 'set charset' in .muttrc to all kind of
things, like utf-8, iso-8859-1, latin1 and so on without any luck.
So now I am all out of ideas. Is there something else I could try?

Thanks!

-Jeppe Larsen

Sarunas Vancevicius

unread,
Aug 15, 2004, 8:33:06 AM8/15/04
to

Add this to your .muttrc:

set charset=isolatin

Seems to display names with Danish characters fine. In case it doesn't for
you, try other charsets (iso-8859-1 or US-ASCII or your local one).

--
Sarunas Vancevicius

Jeppe Larsen

unread,
Aug 15, 2004, 11:50:46 AM8/15/04
to
Sarunas Vancevicius wrote:
>
>
> Add this to your .muttrc:
>
> set charset=isolatin
>
> Seems to display names with Danish characters fine. In case it doesn't for
> you, try other charsets (iso-8859-1 or US-ASCII or your local one).
>

Well, thanks, but it didn't work. As said, I have allready try several
different values in i 'set charset'. The only changes I get when
changing the charset, is that sometimes instead of ?'s the signs are
displayed as \370 and so on.

Magne Rodem

unread,
Aug 15, 2004, 5:54:37 PM8/15/04
to
On Sun, Aug 15, 2004 at 05:50:46PM +0200, Jeppe Larsen wrote:
> Well, thanks, but it didn't work. As said, I have allready try several
> different values in i 'set charset'. The only changes I get when
> changing the charset, is that sometimes instead of ?'s the signs are
> displayed as \370 and so on.

You could probably fix this by changing your LC_CTYPE environment
variable.

Since I'm norwegian, my LC_CTYPE is set to no_NO. I guess da_DK would be
more appropriate for you. Try this (for i.e. bash, sh, ksh or zsh):

export LC_CTYPE=da_DK

Then run mutt. If it works, add it to your shells rc-file (i.e. .bashrc)
to make it permanent.

--
Magne Rodem

Jeppe Larsen

unread,
Aug 16, 2004, 12:30:56 PM8/16/04
to
Magne Rodem wrote:
> You could probably fix this by changing your LC_CTYPE environment
> variable.
>
> Since I'm norwegian, my LC_CTYPE is set to no_NO. I guess da_DK would be
> more appropriate for you. Try this (for i.e. bash, sh, ksh or zsh):
>
> export LC_CTYPE=da_DK
>
> Then run mutt. If it works, add it to your shells rc-file (i.e. .bashrc)
> to make it permanent.
>
Thanks! That worked. At least on most mails, but the ones from hotmail
still had problems. Then I google'ed a litte and found this setting that
solved that prolem too:
charset-hook US-ASCII iso-8859-1

-Jeppe Larsen

Alain Bench

unread,
Sep 1, 2004, 12:09:51 PM9/1/04
to
Hello Jeppe,

In article <cfqng7$76f$1...@news.cybercity.dk>
Jeppe Larsen <ya...@hardware.dk> wrote:-

> [danish chars] from hotmail still had problems. Then I google'ed a


> litte and found this setting that solved that prolem too:
>| charset-hook US-ASCII iso-8859-1

Real character set in Hotmail mails appears to be more like CP-1252.
You may have better results with:

| charset-hook ^us-ascii$ windows-1252


Bye! Alain.
--
Mutt muttrc tip for mailing lists: set followup_to=yes and declare the list as
- subscribe ^list@ddress$ if you are subscribed and don't want courtesy copy.
- lists ^list@ddress$ if you are not subscribed or want a courtesy copy.

0 new messages