RichTextBox.RTF return unicode format or ANSI format?

冷暖自知 提交于 2019-12-12 03:43:39

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!