E
EdUarDo
Hello, I'm using JavaMail, and when I get address' messages they are
in an incorret format:
=?ISO-8859-1?Q?Eduardo_Ya=F1ez_Parareda?= <[email protected]>
when it might be:
Eduardo Yañez Parareda <[email protected]>
I know it is at ISO-8859-1 charset, so when I print the address I'm doing:
Address[] addresses = msg.getFrom();
for (int j = 0; j < addresses.length; j++) {
Address address = addresses[j];
System.out.println(new String(address.toString().getBytes("ISO-8859-1")));
}
but doesn't work.
Some suggestions?
in an incorret format:
=?ISO-8859-1?Q?Eduardo_Ya=F1ez_Parareda?= <[email protected]>
when it might be:
Eduardo Yañez Parareda <[email protected]>
I know it is at ISO-8859-1 charset, so when I print the address I'm doing:
Address[] addresses = msg.getFrom();
for (int j = 0; j < addresses.length; j++) {
Address address = addresses[j];
System.out.println(new String(address.toString().getBytes("ISO-8859-1")));
}
but doesn't work.
Some suggestions?