Encoding of Generated Patches and Pastebin Plugin

Andreas Pakulat apaku at gmx.de
Mon Dec 19 10:03:02 UTC 2011


On 19.12.11 09:43:50, Andreas Pakulat wrote:
> However since we can assume this is 'binary data', its not necessary to
> read the file at all. Simply write a conversion-function which works on
> the binary data. That is, assume plain-ascii for the content and encode
> based on that.

What I meant here is not assuming ascii in the data and use
QString::fromAscii to generate a QString, but implement our own
percent-encoding function which takes binary input and encodes as
explained in the wiki article (or whatever rfc exists for this).

Andreas
 




More information about the KDevelop-devel mailing list