Open zzasdf opened 7 months ago
Setting the environment variable PYTHONUTF8=1 can fix this problem
That's surprising, I don't think there's any code in lhotse itself that would change the encoding. If the env var works for you that sounds good.
Thanks a lot. Otherwise, I thought I had to edit the source code. But the change of encoding should be added into the notes of the doc to avoid confusion.
I encountered a change in the default encoding of Python when using lhotse to extract fbank features. Originally, the default encoding of python is "UTF-8", but after calling the function computefeatures, it becomes ANSI X3.4-1968, which causes an error in saving non English files. This situation happen when I run the code at the first time in a docker container, and won't happen when I run the code again. What could be the reason for this?