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

Okan Özeren commented on EMAIL-102:
-----------------------------------

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.

> HtmlEmail embed toLowerCase bug
> -------------------------------
>
>                 Key: EMAIL-102
>                 URL: https://issues.apache.org/jira/browse/EMAIL-102
>             Project: Commons Email
>          Issue Type: Bug
>    Affects Versions: 1.2
>         Environment: Windows XP, Solaris and Turkish Regional Environment
>            Reporter: Okan Özeren
>            Assignee: Siegfried Goeschl
>            Priority: Minor
>             Fix For: 1.3
>
>
> 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.

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

Reply via email to