Opened 7 years ago
Closed 5 years ago
#1483905 closed Bugs (fixed)
Japanese filenames garbled
| Reported by: | nagata | Owned by: | |
|---|---|---|---|
| Priority: | 5 | Milestone: | 0.1.1 |
| Component: | Client Scripts | Version: | 0.1-beta |
| Severity: | normal | Keywords: | |
| Cc: |
Description
I am garbled in a download of a Japanese name attached file name.
I can download an attached file of a Japanese name by a right name when I add two lines.
program/steps/mail/get.inc
72 line
$filename = $part->d_parameters['filename'] ? $part->d_parameters['filename'] : $part->ctype_parameters['name']; + $filename = decode_mime_string($filename); + $filename = mb_convert_encoding($filename, "SJIS");
An attached file name is garbled after upload in a Japanese name attached file.
It is dissolved when I add one line.
program/steps/mail/upload.inc
55 line
<html> + <META http-equiv="Content-Type" content="text/html; charset=UTF-8">
A Japanese name attached file is garbled in the reception side.
I seem to be successful when I revise two lines.
program/steps/mail/sendmail.inc
182 line
- $MAIL_MIME->addAttachment($attachment['path'], $attachment['mimetype'], $attachment['name'], TRUE); + $MAIL_MIME->addAttachment($attachment['path'], $attachment['mimetype'], mb_encode_mimeheader($attachment['name'], $message_charset), TRUE);
188 line
- $MAIL_MIME->addAttachment($filepath, $files['type'][$i], $files['name'][$i], TRUE); + $MAIL_MIME->addAttachment($filepath, $files['type'][$i], mb_encode_mimeheader($files['name'][$i], $message_charset), TRUE);
Change History (2)
comment:1 Changed 5 years ago by seansan
- Milestone set to 0.1.1
- Summary changed from A garbage of an attached file of a Japanese name to Japanese filenames garbled
comment:2 Changed 5 years ago by thomasb
- Resolution set to fixed
- Status changed from new to closed
works for me in 0.1-stable
Note: See
TracTickets for help on using
tickets.

Verify if this is still the case in 1.1