<<< Date Index >>>     <<< Thread Index >>>

Re: japanese text in email body



 On Tuesday, June 8, 2004 at 11:33:45 AM -0500, steVe wrote:

> to set the locale (via LANG and LC_* variables) to something
> appropriate and start mutt. here's what i use: [jmail script]
>| #!/bin/sh
>| export LANG=ja_JP.eucjp
>| mutt $@

    Dave didn't want Japanese prompts and menus: Not setting LANG, but
only setting LC_CTYPE to such value is better for him.


> in bash shells, one can also do this each time (but i like the script
> above better)

    Terminal's charset and locale's charset are linked. So one can place
the LC_CTYPE declaration somewhere in a startup script, possibly
depending on terminal, and then just call "mutt" from anywhere.


>| set send_charset=iso-8859-1:iso-2022-jp:utf-8;
> for my normal email

    You should insert "us-ascii:" first, and drop final ";".


>| set send_charset=iso-2022-jp:euc-jp;
> for my japanese.

    Why not insert "euc-jp" in your first normal $send_charset above?
Better use one only well populated $send_charset for all mails, and let
Mutt autoselect the best adapted first necessary and sufficient charset
for each mail.


> many japanese people _still_ don't like utf8

    Not a problem with your first $send_charset (ending in utf-8): Mutt
would never select UTF-8, unless you used characters that are
non-convertable to any other charset before. And in this very case,
probably sending UTF-8 would be the only solution (because 2022-JP nor
EUC-JP would not).

    Here you gain nothing with two different $send_charsets, you just
lose a failover for corner cases.


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.