encoding - 批量包装 html 文件并保存为 utf-8
问题描述
我通过 Automator 脚本将苹果笔记导出到 html 文件。我需要它们在 HTML 中导入 Notion。
有2个主要问题:
- 以错误编码保存的文件,需要以 UTF-8 保存
- 没有
<html>, <head>, <body>
标签。
它们很多,因此无法手动编辑它们。
文件看起来像这样
<div>some text</div>
<div>another line</div>
有什么办法可以在 Sublime Text 3 或终端中做到这一点?
解决方案
推荐阅读
- apache-nifi - Apache NiFi:如何运行预定处理器来删除使用通配符指定的文件?
- java - 从反应堆通量返回的错误变得无限
- node.js - 使用 OpenSSL 在应用程序级别实现双向 TLS
- python - 如何在不创建列名的每个时间行的情况下将键和值附加到数据框?
- bash - 如何在Bash中逐字写入文件斜线分割字符串
- html - 如何更改悬停div上方的兄弟div的样式
- sql - 具有连接值的 SQL 查询。如何合并重复并添加标识符?
- python - 使用win32gui抓拍灰度画面
- python - 将树莓派更新为 python 3.9
- javascript - 在 web 应用程序启动时运行函数 react redux