我想在 Manim 中为一些用不同语言编写的单词制作动画。当我使用英语时一切正常,但是当我尝试渲染用不同语言编写的单词时,我得到一个 UnicodeEncodeError。有什么办法可以解决这个问题?提前致谢
class TextOnTopEdge(Scene):
def construct(self):
first_line=TextMobject("আয়ান")
second_line=TextMobject("What do you think?")
second_line.next_to(first_line,DOWN)
third_line=TextMobject("Poncho will tell the stories ")
third_line.next_to(first_line,DOWN)
fourth_line=TextMobject("And Shelly will handle the visual thingies ")
fourth_line.next_to(third_line,DOWN)
fifth_line=TextMobject("PATH TO GLORY!!!!")
fifth_line.next_to(first_line,UP,buff=1)
self.add_sound("sound")
self.add(first_line, second_line)
self.wait(3)
self.play(Transform(second_line,third_line))
self.wait(3)
self.play(Transform(third_line,fourth_line))
self.wait(3)
self.play(Transform(fourth_line,fifth_line))
self.wait(3)
以上部分是代码
“UnicodeEncodeError: 'charmap' 编解码器无法对位置 522-525 中的字符进行编码:字符映射到”
这就是错误。