Java: Encode String in quoted-printable
I am looking for a way to quoted-printable encode a string in Java just like php's native quoted_printable_encode() function. I have tried to use JavaMails's MimeUtility library. But I cannot get the encode(java.io.OutputStream os, java.lang.String encoding) method to work since it is taking an OutputStream as input instead of a String (I used the function getBytes() to convert the String) and outputs something that I cannot get back to a String (I'm a Java noob :) Can anyone give me tips on how to write a wrapper that converts a String into an OutputStream and outputs the result as a String