设置组织模式导出的文件编码

发布于 2024-12-27 04:06:27 字数 286 浏览 3 评论 0原文

我正在导出我的议程

(org-export-icalendar-combine-agenda-files)

,然后将生成的文件加载到网络服务器,我的 Gmail 日历可以从其中读取它。

我的 org-mode 文件都是 utf-8 编码的,ical 文件也是如此。然而gmail eypects cp1252(或者我认为是这样)。

如何在icalendar导出过程中设置文件编码?

I am exporting my agenda with

(org-export-icalendar-combine-agenda-files)

and then loading the resulting file to a webserver from where my gmail calendar can read it.

My org-mode files are all utf-8 encoded and so is the ical file. However gmail eypects cp1252 (or so I think).

How can I set the file encoding during icalendar export?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

瘫痪情歌 2025-01-03 04:06:27

我试图重现你的案例。当我导出议程文件时,Emacs 使用 iso-latin-1 编码编写它们。

然后我将一些西里尔文文本放入议程文件中,然后 Emacs 检测到它无法使用默认编码写入它,并提示使用编码。

我建议您检查变量 buffer-file-coding-system 并将其更新为议程文件的 cp1252。

I tried to reproduce your case. When I exported my agenda files Emacs wrote them using iso-latin-1 encoding.

Then I put some Cyrillic text into my agenda files and then Emacs detected that it cannot write it with the default encoding and prompted for encoding to use.

I suggest that you check the variable buffer-file-coding-system and update it to cp1252 for agenda files.

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