- char *fchs = b->use_disp ? ((FileCharset && *FileCharset) ?
- FileCharset : Charset) : Charset;
- if (Charset && (chs || SendCharset) &&
- convert_file_from_to (fp, fchs, chs ? chs : SendCharset,
+ char *fchs = b->use_disp && !m_strisempty(MCharset.file_charset)
+ ? FileCharset : MCharset.charset;
+ if (MCharset.charset && (chs || MCharset.send_charset) &&
+ convert_file_from_to (fp, fchs, chs ? chs : MCharset.send_charset,