首页 > 解决方案 > 批量包装 html 文件并保存为 utf-8

问题描述

我通过 Automator 脚本将苹果笔记导出到 html 文件。我需要它们在 HTML 中导入 Notion。

有2个主要问题:

  1. 以错误编码保存的文件,需要以 UTF-8 保存
  2. 没有<html>, <head>, <body>标签。

它们很多,因此无法手动编辑它们。

文件看起来像这样

<div>some text</div>
<div>another line</div>

有什么办法可以在 Sublime Text 3 或终端中做到这一点?

标签: encodingsublimetext3editing

解决方案


推荐阅读