0

i want decode some content of an .eml-Mail-File. The File contains Strings like "Gesch=C3=A4ftsbedingungen", it shoult be > "Geschäftsbedingungen"

reader = new InputStreamReader(new FileInputStream(path)); 
BufferedReader in = new BufferedReader(reader);

while ((line = in.readLine()) != null)          
{ 
System.out.println(line); 
}

Im not sure how i do that. I try to use "MimeUtility", but i do not get along so.

MimeUtility test;
System.out.println(test.decode(line));

1 Answers1

0

Note : MimeUtility is an utility class so it contains all static methods so you should use

System.out.println(MimeUtility.decode(line));

Though I think you should use MimeUtility.decodeText or MimeUtility.decodeWord method or commons MimeUtility.decodeText method.

Anirban Nag 'tintinmj'
  • 5,572
  • 6
  • 39
  • 59