Hi,
Strange, your command works well for me under Debian testing (actually using Python 3.12.6).

On the other hand, the trace under Windows points at a charset error: the used terminal is simply not compatible with UTF-8 or not configured to handle UTF-8 strings.

Such an error under GNU/Linux systems would be quite strange.

my 2¢