在 Asp.Net Literal Control 中显示 MS Word html 文件时出现问题
当我显示在 MS Word 中创建的 html 文件时,它在 ASP Literal 控件中无法正确呈现。它似乎无法显示选项卡、破折号、项目符号等。我可以做些什么来完成这项工作吗?
When I display an html file that was created in MS Word, it doesn't render correctly in the ASP Literal control. It seems to have trouble showing tabs, dashes, bullets, etc. Is there something I can do to make this work?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
MSWord 中的某些字符永远不会正确显示:制表符、项目符号、破折号。您可以使用 XL 而不是 Word 并创建一个宏,将项目符号更改为 • 或将破折号更改为 −。我不认为选项卡有 html 等价物。
仅当您的 ascx 和 aspx 均为 UTF-8 编码时,才能显示其他字符(国际)。
Some characters from MSWord will never appear correct: tabs, bullets, dashes. You could use XL instead of Word and create a macro that changes the bullets to • or dashes to −. I dont think tabs have an html equivilent.
Others characters (international) can only be shown if both your ascx and aspx are both UTF-8 encoded.