[vim/vim] How to decode utf-16le streams? (Discussion #19163)

2 views
Skip to first unread message

ubaldot

unread,
Jan 11, 2026, 10:23:40 PM (2 days ago) Jan 11
to vim/vim, Subscribed

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.Message ID: <vim/vim/repo-discussions/19163@github.com>

Reply all
Reply to author
Forward
0 new messages