Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
Showing results for 
Search instead for 
Did you mean: 

mailx charset

Brian Pyle
Frequent Advisor

mailx charset

I've been using mailx to send email messages to my ms-exchange server. I usually export the environment variable charset=us-ascii, because I had read in the man pages that this was the default, and it seemed to be understood by my ms-outlook so the message didn't come across as an attachment. My question is? What are some other charset's I can use, and where do I find a list of them?

Follow The Path With Heart
harry d brown jr
Honored Contributor

Re: mailx charset

man mailx:
Set the default character-set. If none is
specified, mailx will attempt to use the value of LANG to look up the system default for the user's locale. If that is unsuccessful, the default value of us-ascii will be used.
--well, LANG: have a look what "locale -a" shows...
I'd set that in either
/usr/share/lib/mailx.rc or $HOME/.mailrc

btw there we specify also 7/8bit enconding:)
hth, Cheers, Thomas