Operating System - HP-UX
1834449 Members
2305 Online
110067 Solutions
New Discussion

Received email in X-roman8 charset instead of US-ASCII

 
SOLVED
Go to solution
YLTan
Frequent Advisor

Received email in X-roman8 charset instead of US-ASCII


Can some tell me why when I have the following statement below in /var/opt/perf/alarmdef, it sent out an email in X-roman8 characterset, my Microsoft Outlook client can't decode this character set.

How to set the characterset in Unix to send email in US-ASCII ?? Is there a file where the system-wide character set is defined, so I can edit an change it so the email will be in US-ASCII?

exec "echo 'Global CPU % is at ", GBL_CPU_TOTAL_UTIL,
"% ' | mailx -s 'Global CPU % is High' root"

This is what appears in email headers;

Mime-Version: 1.0
Content-Type: text/plain; charset=X-roman8
Content-Transfer-Encoding: 7bit

This is what appears in the email content;

"This message uses a character set that is not supported by the Internet Service. To view the original message content, open the attached message.
If the text doesn't display correctly, save the attachment to disk, and then open it using a viewer that can display the original character set. "


The actual message are sent as an attachment instead of text email.

When i try to send the same email with a userID it sent out correctly in us-ascii character set and with no attachment and the actual content appears in the email content. Can some one help?
tyl
2 REPLIES 2
Bernhard Mueller
Honored Contributor

Re: Received email in X-roman8 charset instead of US-ASCII

try using
mailx -m -s ...

Regards
Bernhard
Stuart Abramson_2
Honored Contributor
Solution

Re: Received email in X-roman8 charset instead of US-ASCII

This is "mailx" problem.

Fix:

o For all users:

vi /usr/share/lib/mailx.rc

o For individual users:

vi $HOME/.mailrc

add last line below:

set append
set asksub
set dot
set crt=21
set PAGER=/usr/bin/more
set save
set encoding=8bit
==> set charset=us-ascii <==