更新时间:2023-02-03 08:46:50
这必须有效,它与上记录的相同MSDN [ ^ ] ...你为什么这么想没有正确转换?
This must work, it is the same as documented on the MSDN[^]... Why do you think it is not converted correctly?
我认为(但我不确定)这是编码问题。
试试这个:
Hi,
I think (but I'm not sure) it's an encoding problem.
Try this:
string s = System.IO.File.ReadAllText(path, Encoding.UTF8);
RichTextBox rtb = new RichTextBox();
rtb.Rtf = s;
return rtb.Text;
希望这会有所帮助。
Hope this helps.