• Mutt with UTF-8

    From Susan Ruiz@21:1/5 to All on Tue Jul 31 03:08:03 2018
    Hi, I have made the installation of mutt 1.10 from the source code on my machine with Devuan 2.0

    I have the problem that the text are altered, has anyone managed to run
    without problems the latest version of Mutt with UTF-8?

    This is my locale exit
    en_US.iso88591
    en_US.utf8
    es_US
    es_US.iso88591
    es_US.utf8

    In my .muttrc

    set charset = "UTF-8"

    I appreciate the help and guidance in advance.

    Regards,
    Susan

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Eike Rathke@21:1/5 to All on Tue Jul 31 12:09:13 2018
    * Susan Ruiz, 2018-07-31 03:08 UTC:
    I have the problem that the text are altered,

    Altered when? It may be the editor you use that stores text in
    a different encoding.

    has anyone managed to run
    without problems the latest version of Mutt with UTF-8?

    Yes, always.

    This is my locale exit
    en_US.iso88591
    en_US.utf8
    es_US
    es_US.iso88591
    es_US.utf8

    So which one is it? There can be only one. Running 'locale', the output
    should contain

    LANG=en_US.utf8
    LC_CTYPE="en_US.utf8"

    (or
    LANG=en_US.UTF-8
    LC_CTYPE="en_US.UTF-8"
    )

    In my .muttrc

    set charset = "UTF-8"

    Try to remove. Citing from man muttrc for 'charset':

    | Character set your terminal uses to display and enter textual data. It is also the fallback for
    | $send_charset.
    |
    | Upon startup Mutt tries to derive this value from environment variables such as $LC_CTYPE or $LANG.
    |
    | Note: It should only be set in case Mutt isn't able to determine the character set used correctly.

    If the encoding is changed when sending the mail then check the content
    of mutt's 'send_charset' variable, if set it should contain utf-8, for
    example with

    set send_charset="us-ascii:utf-8"

    mutt tries to use us-ascii if possible, but if non-ascii characters are
    used it uses utf-8. For legacy reasons (communicating with rare MUAs
    that don't know utf-8) it may be helpful for the receiver to have

    set send_charset="us-ascii:iso-8859-1:iso-8859-2:utf-8"

    so iso-8859-1 is used if possible before utf-8.

    Eike

    --
    OpenPGP/GnuPG encrypted mail preferred in all private communication.
    GPG key 0x6A6CD5B765632D3A - 2265 D7F3 A7B0 95CC 3918 630B 6A6C D5B7 6563 2D3A Use LibreOffice! https://www.libreoffice.org/

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)