我正在尝试使用awdeoroi mailmerge。在html模板中,我在段落标签中使用了法语编码的字符。 当我执行邮件时,我遇到编码错误:
UnicodeDecodeError : 'utf-8' codec can't decode byte 0xf4 in position 81: invalid continuation byte
如何对这些段落进行编码,以使它们在python中得到很好的对待?
TO: {{email}}
SUBJECT: Testing mailmerge
FROM: My Self <myself@mydomain.com>
Content-Type: text/html
<html>
<body>
<p>Hi, {{name}},</p>
<p>Your number is {{number}}.</p>
<p>Sent by <a href="https://github.com/awdeorio/mailmerge">Here is the paragraph. Ce texte est en francais. <b>Accentué<b>. L'ideal</a></p>
</body>
</html>
答案 0 :(得分:0)
十六进制version: 2
jobs:
build:
working_directory: ~/tmp
docker:
- image: 'cypress/base:10'
environment:
TERM: xterm
steps:
- run: npm ci
- persist_to_workspace:
root: ~/
paths:
- .cache
- tmp
test:
working_directory: ~/tmp
docker:
- image: 'cypress/base:10'
environment:
TERM: xterm
steps:
- attach_workspace:
at: ~/
- run: ls -la cypress
- run: ls -la cypress/integration
- run:
name: Running cypress tests
command: npm run cy:test-run
- store_artifacts:
path: cypress/videos
- store_artifacts:
path: cypress/screenshots
workflows:
version: 2
build_and_test:
jobs:
- build
- test:
requires:
- build
代表f4
的拉丁语1。如果将其键入Python,则需要在源文件的开头:
ô
如果数据来自数据库,请提供更多详细信息。
如果文本来自其他地方,请提供更多详细信息。