我使用以下代码发送包含来自oracle的阿拉伯字符的电子邮件。但问题是,我能够接收阿拉伯语中的主题,但身体被接收为奇怪的字符:
CREATE OR REPLACE PROCEDURE TEST_Send_arabic_email(FROM_ VARCHAR2, TO_ VARCHAR2,MESSAGE VARCHAR2,V_SUBJECT VARCHAR2 DEFAULT NULL) IS
conn utl_smtp.connection;
C_SUBJECT VARCHAR2(150);
BEGIN
conn := demo_mail.begin_mail(
sender => from_,
recipients => to_,
subject => utl_encode.MIMEHEADER_ENCODE(C_SUBJECT),
mime_type => 'text/html;charset=1256');
utl_smtp.write_raw_data(conn,utl_raw.cast_to_raw(MESSAGE));
demo_mail.end_mail( conn => conn );
END;