code: public static InternetPrintWriter createForEncoding(OutputStream outputStream, boolean autoFlush, Charset charset) {
          return new InternetPrintWriter(new OutputStreamWriter(outputStream, charset), autoFlush);
      }
docs: Creates a new InternetPrintWriter for given charset encoding.
  
  @param outputStream the wrapped output stream.
  @param charset      the charset.
  @return a new InternetPrintWriter.