I am running ipython in a terminal buffer and I am trying to capture its stdout in a script by means of out_cb callback.
In the stdout stream there is pretty much everything (ANSI escape codes, etc) that I can somehow filter out, but the main problem is that the stream is utf-16 (I am working on Windows) and I kinda feel that I am reinventing the wheel by writing my own utf-16 decoder which is start becoming very tedious due to all the singularities that may happen.
At the same time I don't think I am the first person on Earth to have bumper in such a problem and I am wondering if anyone already wrote a utf-16 decoder that I can borrow and/or where to find one.
Thanks!
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()