gpt4 book ai didi

html - 从 word 复制/粘贴到 html

转载 作者:行者123 更新时间:2023-11-28 00:00:18 24 4
gpt4 key购买 nike

我不敢相信我在这个荒谬的问题上挣扎了将近 2 个小时:

当我将 .docx 文档中的一些文本复制/粘贴到 Notepad++ 时,很多字符都丢失了,我得到“?” (问号)。我试图将该文本从 .docx 复制到记事本,当我想保存该文件时,它说

This file contains characters in Unicode format which will be lost if you save this file as an ANSI encoded text file. To keep the Unicode information, click Cancel below and then select one of the Unicode options from the Encoding drop down list.

然后,我尝试将其保存为 Unicode 并将新的 .txt 文件复制到我的 html 编辑器 (Notepad++),但该死的问题仍然存在!

奇怪的是,这个问题只发生在那个 .docx 文件中的几个段落中。文本的其余部分复制得很好。

如何解决这个问题?

最佳答案

请尝试以下方法:

  1. 直接在编辑器中输入。
  2. 先粘贴到记事本中,取消选择文本,重新选择它,然后将其粘贴到编辑器中(首先将其放入记事本中会删除除文本以外的所有内容,因此您可能需要重新格式化列表,粗体,斜体,等)。
  3. 使用编辑器工具栏中的“从 Word 粘贴”图标代替 Ctrl+V(或 Cmd+V 在 Mac 上),但请注意,这并不总是会清除所有标记。
  4. 使用在线 Word -> Clean HTML 转换器,例如 http://word2cleanhtml.com .

来源:Copy/Paste From Word to Editor

或引用:Paste From Word

希望这对您有所帮助。

关于html - 从 word 复制/粘贴到 html,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21667399/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com