i'm generating HTML email in Java and sending it through Apache Commons Email. My mails are sent in UTF-8 and work OK in MS Outlook and GMail but i have in issue with polish email provider Wirtualna Polska [ http://wp.pl/ ]. Their online email client is complaining that "Detected different encodings in the email content". How can i detect in java which chars or words in a string have different encodings than the other?
If it does matter - the email in an HTML email and has 4 images embedded.

Finally when i got my email ready i do this to force UTF8:
return org.apache.commons.codec.binary.StringUtils.newStringUtf8(mail.getBytes(StandardCharsets.UTF_8));
But it does not help.

StringUtils.newStringUtf8?