<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">On 22/05/15 16:08, Gabe Alford wrote:<br>
    </div>
    <blockquote
cite="mid:CAGLxfGzO3qGUAK-iSnvDRRGD3aY+pL+ZnbafefpoXg9PDH7Fyg@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>Hello,<br>
          <br>
        </div>
        <div>This should fix <a moz-do-not-send="true"
            href="https://fedorahosted.org/freeipa/ticket/3584">https://fedorahosted.org/freeipa/ticket/3584</a>,
          and as requested in the ticket, this should also fix <a
            moz-do-not-send="true"
            href="https://fedorahosted.org/freeipa/ticket/2284">https://fedorahosted.org/freeipa/ticket/2284<br>
          </a></div>
        <div><br>
        </div>
        <div>Thanks,<br>
          <br>
        </div>
        <div>Gabe<br>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
    </blockquote>
    Thank you!<br>
    <br>
    IMO your first part of fix only mask issue, not solving it.<br>
    <br>
    This could be way, but I did not test it.<br>
    <br>
                out_encoding = getattr(outfile, 'encoding', None)<br>
                if out_encoding is None:<br>
                    out_encoding = 'utf-8'<br>
                print >> outfile, 
    unicode(string).encode(out_encoding)<br>
    <br>
    Can you split this patch into 2 separate patches for each ticket
    please?<br>
    <br>
    Martin^2<br>
    <br>
    <pre class="moz-signature" cols="72">-- 
Martin Basti</pre>
  </body>
</html>