<div dir="ltr">What if you try traceback.print_exception()?  Does it work?  Maybe it's smart enough to detect whether it needs to encode the traceback before printing.</div><br><div class="gmail_quote"><div dir="ltr">On Thu, Jan 28, 2016 at 9:13 AM Tamas Berghammer <<a href="mailto:tberghammer@google.com">tberghammer@google.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">tberghammer added a comment.<br>
<br>
I converted the strings it was complaining about but I haven't managed to get the traceback printing working without converting the data to utf-8 manually. We are using traceback.format_exception to collect the stack trace what returns a string, then we store it in a variable and print it later.<br>
<br>
<br>
<a href="http://reviews.llvm.org/D16680" rel="noreferrer" target="_blank">http://reviews.llvm.org/D16680</a><br>
<br>
<br>
<br>
</blockquote></div>