delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/02/20/07:01:08

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=0.4 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS,WEBMAIL_BODY
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <20100219133535.GA2920@mimosa.garydjones.name>
References: <20100219133535 DOT GA2920 AT mimosa DOT garydjones DOT name>
Date: Sat, 20 Feb 2010 12:00:54 +0000
Message-ID: <416096c61002200400q23d325acva12ab4cfb5266294@mail.gmail.com>
Subject: Re: Problems with mutt & charset
From: Andy Koppe <andy DOT koppe AT gmail DOT com>
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Gary:
> For some reason although when I send emails containing certain umlauted
> characters everything looks fine, the recipient sometimes (or possibly
> always, I only know because one person mentioned it) doesn't see the
> characters correctly.
>
> I have the following environment variables set
> LANG = "en_US.UTF-8"
> LC_CTYPE = "de_CH.UTF-8"
>
> (LANG is en because I want to have my messages in English. Must LC_CTYPE
> match?)

The charsets should probably match. I'm not sure whether the de_CH
instead of en_US in LC_CTYPE makes any difference, i.e. you could
probably just leave LC_CTYPE unset. If you want Swiss German
conventions for everything except messages, e.g. sorting, time, and
money formats, you should set LANG=de_CH.UTF-8 and
LC_MESSAGES=en_US.UTF-8.


> and within mutt I can see that Mutt has the charset variable set to
> UTF-8 - ':set &charset ?charset' displays 'charset="utf-8"'.
>
> However if I send *myself* an email containing upper case an umlauted A,
> O, or U I see garbage in mutt where the character should be, however if
> I look at the email via webmail it looks fine. Similary if I send a
> friend an email continaing (apparently) any type of umlauted character
> (upper or lower case) they appear to be replaced by spaces. I notice
> that the Content-Type header contains text/plain; charset=iso-8859-1. Is
> that correct? In .muttrc send_charset is unset, so allegedly defaults to
> charset, but that doesn't seem to be the case here for some reason.

I don't use mutt, so I can't really help here, but a mintty user
reported that he had to rebuild mutt against ncursesw (which is now
part of the Cygwin distribution) to get UTF-8 in mutt working:
http://code.google.com/p/mintty/issues/detail?id=124#c28

Andy

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019