设置组织模式导出的文件编码
我正在导出我的议程
(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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我试图重现你的案例。当我导出议程文件时,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.