Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.2
    • Fix Version/s: 1.3
    • Labels:
      None
    • Environment:

      Windows XP, Solaris and Turkish Regional Environment

      Description

      When I embed an image to my html email object, if randomAlphabetic (on this line HtmlEmail.java:325) method brought uppercase 'I' character, at the this time toLowerCase method convert it to lowercase Turkish 'ı' character. I think, toLowerCase brougt lowercase 'ı' character when regional settings up to Turkish. In that case, this header variable expose to mime encoding process and set as like "cid:=C4=B1glhuooecb" (=C4=B1 is lowercase 'ı' character) and the mail clients does not show this embedded image.

      Maybe, toLowerCase method use by passing English Locale parameters then this must work correctly like this "toLowerCase(Locale.ENGLISH);".

      Best regards,

      Okan Özeren.

        Activity

        Hide
        Siegfried Goeschl added a comment -

        Have you tested

        String cid = EmailUtils.randomAlphabetic(HtmlEmail.CID_LENGTH).toLowerCase(Locale.ENGLISH);

        Show
        Siegfried Goeschl added a comment - Have you tested String cid = EmailUtils.randomAlphabetic(HtmlEmail.CID_LENGTH).toLowerCase(Locale.ENGLISH);
        Hide
        Siegfried Goeschl added a comment -

        Committed the proposed change in SVN - Okan, can you give it a try?!

        Show
        Siegfried Goeschl added a comment - Committed the proposed change in SVN - Okan, can you give it a try?!
        Hide
        Okan Özeren added a comment -

        I have already tried this solution numbers of times and working it in such a way that. Also, you can cause this state with you will used this function such as (But this is wrong and undesirable situation and my default Locale same as it and toLowerCase acting as per this default Locale setting):

        String cid = EmailUtils.randomAlphabetic(HtmlEmail.CID_LENGTH).toLowerCase(new Locale("tr_TR"));

        At the same time, there are two times used this procedure (I mean toLowerCase code part) in the HtmlEmail.java file on the 325 and 454 lines, you should know.

        Thanks Siegfried.

        Show
        Okan Özeren added a comment - I have already tried this solution numbers of times and working it in such a way that. Also, you can cause this state with you will used this function such as (But this is wrong and undesirable situation and my default Locale same as it and toLowerCase acting as per this default Locale setting): String cid = EmailUtils.randomAlphabetic(HtmlEmail.CID_LENGTH).toLowerCase(new Locale("tr_TR")); At the same time, there are two times used this procedure (I mean toLowerCase code part) in the HtmlEmail.java file on the 325 and 454 lines, you should know. Thanks Siegfried.

          People

          • Assignee:
            Siegfried Goeschl
            Reporter:
            Okan Özeren
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development