Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Decode quoted printable
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Decode quoted printable
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01337858
Message ID:
01337858
Vues:
55
I finally managed to decode quoted printable ( something as: " * "Atualiza=E7=E3o do anti-v=EDrus"
"

If someone need it, that's below


lcHtml = FILETOSTR( SYS(5)+ CURDIR()+ emails.msgtx_path) && txt file to be decoded

oMsg = NEWOBJECT("CDO.Message")
oMsg.BodyPart.ContentTransferEncoding = "quoted-printable"

Stream = oMsg.BodyPart.GetEncodedContentStream
oStream.Writetext = lcHtml && txt file to be decoded
Stream.Flush
Stream = oMsg.BodyPart.GetDecodedContentStream()
Stream.SaveToFile("c:\" + SYS(2015) + ".txt")
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform