You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Siegfried Goeschl (JIRA)" <ji...@apache.org> on 2010/07/14 07:42:49 UTC

[jira] Commented: (EMAIL-82) Attaching .doc files with Greek Names (as filenames) and encoding of the name is wrong

    [ https://issues.apache.org/jira/browse/EMAIL-82?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12888205#action_12888205 ] 

Siegfried Goeschl commented on EMAIL-82:
----------------------------------------

I found the problem and it is not a bug but a feature - there is a System property "mail.mime.encodefilename" (see http://java.sun.com/products/javamail/javadocs/javax/mail/internet/package-summary.html). If set to "true" the property triggers an optional MIME encoding of the attachment name if it contains non-ASCII characters which in turn violates the MIME specification. Basically MimeUtility.encodeText(text, charset, encoding) is applied to the attachment name.

I provided a test (EmailLiveTest.testCorrectCharacterEncoding) to demonstrate the problem.

> Attaching .doc files with Greek Names (as filenames) and encoding of the name is wrong 
> ---------------------------------------------------------------------------------------
>
>                 Key: EMAIL-82
>                 URL: https://issues.apache.org/jira/browse/EMAIL-82
>             Project: Commons Email
>          Issue Type: Bug
>    Affects Versions: 1.1
>         Environment: windows xp service pack 2
> Ibm Rational Software Development Platform
>            Reporter: chris bek
>            Assignee: Siegfried Goeschl
>            Priority: Critical
>             Fix For: 1.3
>
>
> I have a file located in my pc localy and i send it as an attachment from multipart mail..sending and attaching works good and file can be opened from mail account..The problem is with the filename for example the file is : "Το εγγραφό μου.doc" ("My document.doc") and the result in attached file is something 
> like this:  ΐ±ΐ±ΑΉ± Ό±½ΔΏ.doc
> if filename is in english i dont have problems..but for my business is essential to have attached documents with greek characters (i tried UTF-*8 as charset for multipart mail and greek iso charset as well but the problem remains...)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.