I've written a script to parse emails because AFAIK there are no cpan modules to actually just grab the body of an email...you get all the headers and html too.
Anyway as part of the script I need to grab the subject...thats pretty easy however I got Carsten to send me one in Japanese and the email subject turns into something like:
=?ISO-2022-JP?B?GyRCJEYkOSRIGyhCLXRlc3Q=?=
...however the body shows pretty much correctly. I thought this was a bug in my code but I opened the email in Outlook and "Properties" > "Details" shows exactly the same code for the subject line yet it displays properly as Japanese text in my inbox.
Does anyone know what is causing this and can it be fixed?
I'm assuming that if Outlook has the same issue then it is either a bug or unfixable?
Anyway as part of the script I need to grab the subject...thats pretty easy however I got Carsten to send me one in Japanese and the email subject turns into something like:
=?ISO-2022-JP?B?GyRCJEYkOSRIGyhCLXRlc3Q=?=
...however the body shows pretty much correctly. I thought this was a bug in my code but I opened the email in Outlook and "Properties" > "Details" shows exactly the same code for the subject line yet it displays properly as Japanese text in my inbox.
Does anyone know what is causing this and can it be fixed?
I'm assuming that if Outlook has the same issue then it is either a bug or unfixable?