在 Asp.Net Literal Control 中显示 MS Word html 文件时出现问题

发布于 2024-08-03 18:04:16 字数 97 浏览 3 评论 0原文

当我显示在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

箜明 2024-08-10 18:04:16

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文