Godot Version
Godot_v4.3-stable_mono_win64
Question
I am a newbie in Godot, I have already visited more than 25 sites but still have not found a solution to the problem.
when changing the text via code, an error appears. However, if you set the text in godot itself, there is no error.
error: Unicode parsing error, some characters were replaced with � (U+FFFD): Invalid UTF-8 continuation byte (ef … f0 …)
I use this code:
using Godot;
using System;
using System.Text;
public partial class Main : Node
{
private RichTextLabel _text;
public override void _Ready()
{
_text = GetNode<RichTextLabel>("text");
_text.Text = "привет";
}
public override void _Process(double delta)
{
}
}
I tried using _text.SetText(“привет”); but in this case the text didn’t change at all.
p.s. I don’t know English well so I used Google Translate.