nikrou / eventHandler

a dotclear plugin to manage events in your blog.
Other
2 stars 5 forks source link

Add utf-8 charset in headers #10

Closed vdanjean closed 9 years ago

vdanjean commented 9 years ago

When using google calendar to automatically import an ics, google does not look into the ics itself to look for the charset (whereas eventHandler already put UTF-8 here). For non ascii characters to work, it is required that the server return the "Content-Type: text/calendar; charset: utf-8" header.

The patch is easy : diff --git a/web/plugins/eventHandler/_public.php b/web/plugins/eventHandler/_pu index 81ccf9b..e282aaa 100755 --- a/web/plugins/eventHandler/_public.php +++ b/web/plugins/eventHandler/_public.php @@ -675,7 +675,7 @@ class urlEventHandler extends dcUrlHandlers

            $res .= "END:VCALENDAR\r\n";
vdanjean commented 9 years ago

As the patch has been completly modified by the editor, I created a fork and did a pull request.

nikrou commented 9 years ago

Fix in 15ff9496521caa2ecb7df59b75f41d759857f3ba (by PR 11)