Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Decode quoted printable
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Decode quoted printable
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01337858
Message ID:
01337858
Views:
57
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")
Next
Reply
Map
View

Click here to load this message in the networking platform