I tried to concatenate the strings but none of below things works for me in Arabic language and it works fine for all other languages.
Approach
String fileName = getCurrentDate() + UNDERSCORE + getFileNameFromSubject(emailTO.getSubject()) + "." + emailDefinition.getEmailMessageFileType();
Approach
StringBuilder fileName=new StringBuilder(); fileName.append(getCurrentDate()).append(UNDERSCORE) .append(getFileNameFromSubject(emailTO.getSubject())).append(".") .append(emailDefinition.getEmailMessageFileType());
Approach
String fileName=String.format("%s_%s.%s", getCurrentDate(),"subject",".msg");
Do we need to use any specific API to make it work for all languages including RTL languages?