问题
Recently, i'm very confused about the RTF format. I check the RTF 1.6 spec from MSDN, which is native supported in .Net. RTF 1.6 will support Unicode by \uN, and for ANSI, RTF will support multiple byte language via codepage. If we use RichTextBox.RTF to retrieve the RTF format, which format will be returned? Unicode? or ANSI multiple byte?
System language configuration depended? or anything else?
回答1:
String
is always Unicode in .NET.
回答2:
solved.. That's because we disable RichTextBox.LangOptions.AutoFont, which will cause the RTF return unicode format.
来源:https://stackoverflow.com/questions/3446649/richtextbox-rtf-return-unicode-format-or-ansi-format