RichTextBox.RTF 返回 unicode 格式还是 ANSI 格式? [英] RichTextBox.RTF return unicode format or ANSI format?

查看:71
本文介绍了RichTextBox.RTF 返回 unicode 格式还是 ANSI 格式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近,我对 RTF 格式感到非常困惑.我检查了 MSDN 中的 RTF 1.6 规范,该规范在 .Net 中是本机支持的.RTF 1.6 将通过 \uN 支持 Unicode,对于 ANSI,RTF 将通过代码页支持多字节语言.如果我们使用 RichTextBox.RTF 来检索 RTF 格式,会返回哪种格式?统一码?还是ANSI多字节?

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?

推荐答案

已解决..那是因为我们禁用了RichTextBox.LangOptions.AutoFont,会导致RTF返回unicode格式.

solved.. That's because we disable RichTextBox.LangOptions.AutoFont, which will cause the RTF return unicode format.

这篇关于RichTextBox.RTF 返回 unicode 格式还是 ANSI 格式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆