Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Setting file encoding for org-mode ical export

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?

like image 681
Otto Pichlhoefer Avatar asked Jan 15 '12 19:01

Otto Pichlhoefer


1 Answers

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.

like image 105
Oleg Pavliv Avatar answered Sep 28 '22 05:09

Oleg Pavliv