ExcelでCSVファイルの漢字を解釈する方法

ExcelでCSVファイルの漢字を解釈する方法

中国語の文字を含むUnixシェルスクリプトからレポートを送信します。

textmateなどのプレーンテキストエディタでCSVレポートを開くと漢字が表示されますが、ExcelでCSVレポートファイルを開くと漢字が表示されず一部の文字が壊れて見えます。

ファイルに中国語の文字セットが含まれていることをExcelに「通知する」方法は何ですか?

以下は、電子メールを送信してCSVファイルを添付するコードです。

send_mail() {

v_mailpart="ZZ_/afg6432dfgkl.94531q"
echo "Mail to be sent to $RPT_SEND_TO"
echo "To: $RPT_SEND_TO
Subject: Blah Report as of $report_date_format;
Content-Type: multipart/mixed; boundary=\"$v_mailpart\"
MIME-Version: 1.0

This is a multi-part message in MIME format.
--$v_mailpart
Content-Type: text/html
Content-Disposition: inline

<html><body><p>Hi All,<p>Please find attached, the daily report <p>Thanks,
<br/>Blah Team</br/><br/><br/></p><p>NOTE: This is an auto-generated email. Do not reply to it. Please send an email to [email protected] in
 case of any issues.<p></body></html>

--$v_mailpart
Content-Transfer-Encoding:UTF-8;
Content-Type: text/plain;charset=\"UTF-8\";
Content-Disposition: attachment; filename=blah-report.csv
`cat $spool_file5`" | /usr/sbin/sendmail -t
}

ベストアンサー1

おすすめ記事