bbottema / outlook-message-parser

A Java parser for Outlook messages (.msg files)
76 stars 35 forks source link

Can the outlook-message-parser library handle the UTF-8 characters #50

Closed mikesmallhelp closed 2 years ago

mikesmallhelp commented 2 years ago

I'm using the org.simplejavamail:outlook-message-parser library:

        OutlookMessageParser outlookMessageParser = new OutlookMessageParser();
        OutlookMessage outlookMessage = outlookMessageParser.parseMsg("myMessage.msg");
        System.out.println(outlookMessage.getBodyText());

and output is:

Testiviestin sis?lt?

The original Outlook message contains this body: "Testiviestin sisältö".

Can the org.simplejavamail:outlook-message-parser library handle the UTF-8 characters?

mikesmallhelp commented 2 years ago

I think this problem was causing about the logger. It couldn't handle UTF-8 characters. Above example was simplified, it used custom logger.