Encode text as QuotedPrintable
Andre
andre at s-e-a-p.de
Wed Nov 20 09:50:47 PST 2013
On Wednesday, 20 November 2013 at 17:04:07 UTC, Adam D. Ruppe
wrote:
> On Wednesday, 20 November 2013 at 16:53:47 UTC, Andre wrote:
>> is there a library function for encoding text as
>> QuotedPrintable?
>
> I fixed the function in that post:
>
>
> char[] generateQuotedPrintable(in char[] string, in char[] ...
>
> There were two problems: one is a cast was needed due to a
> language change since it was written that is now more strict
> about narrowing conversions, and the other is it said i +=2 and
> i don't know why it did that and am pretty sure it is just
> wrong, so I removed that.
>
> This function should work now.
>
> If you need more email related stuff, I wrote a file that can
> send html email and such and can also read mbox messages:
>
> https://github.com/adamdruppe/misc-stuff-including-D-programming-language-web-stuff/blob/master/email.d
Thanks a lot for the fix. Also the file is great.
Kind regards
André
More information about the Digitalmars-d-learn
mailing list