Feng Forum

Other Topics => Development => Community Contributions => : chuelibrueder July 27, 2010, 05:03:03 AM

: google calenendar doesn't recognize spezial characters
: chuelibrueder July 27, 2010, 05:03:03 AM
I'm trying to read a calendar into google calendar using the ical link at the top right corner. Basically it works, but google calender doesn't seem to read the file as utf-8 encoded. This means that all my german character (üöä) end up looking like this "��".

According to some forum aswer something like this needs to be added to the header

:
header('Content-type: text/calendar; charset=UTF-8');
header("Content-Disposition: inline; filename=$cal");

but I really don't know where to add this.

Does anyone else have this problem?

Is there a solution for this?

Greetings
chuelibrueder
: Re: google calenendar doesn't recognize spezial characters
: chuelibrueder July 27, 2010, 07:37:42 PM
I found myself a work arround, this will probably break the ical feed and export for most other ical clients, but since I only use it in google calendar I don't care. It seems to be a bug with google calendar which hasn't been fixed for the last two years.

Anyway, I replaced

:
return $ical_info;
with

:
$umlaut = array("ü", "ä", "ö", "Ü", "Ä", "Ö");
$vokal = array("ü", "ä", "ö", "Ü", "Ä", "Ö");

$ical_info_latin = str_replace($umlaut, $vokal, utf8_decode($ical_info));

return $ical_info_latin;

pretty much at the end of CalFormatUtilities.php
: Re: google calenendar doesn't recognize spezial characters
: chuelibrueder August 02, 2010, 06:16:37 AM
Just to complete the story.

After fixing this first bug with google calendar I noticed an other bug with google calendar. The timezone was not accepted by google so the dates where read as if they were greenich mean time, and the time was always of by an hour (depending on where you are). This too is a well known bug of google calendar, which hasn't been fixed for years. I guess I could have fixed that too by writing some code to add the appropriate number of hours to the feed. But then I noticed yet an other problem. The feed is cached by google calendar and only refreshed about every 24 hours, also changes on existing dates are never checked for. After this I was so pissed of I just couldn't be bothered anymore.

Really the only thing I wanted, was to feed the dates to my windows mobile phone. The solution I now have works very well, without any bug: I'm feeding the calendar into Lightning (Thunderbird Calendar Add on) and then from there by Birdiesync to my mobile phone. It doesn't work over the air, but at least it works. If anyone needs any help with this solution, just post a note, I'm happy to help
: Re: google calenendar doesn't recognize spezial characters
: cabeza August 03, 2010, 04:53:31 PM
Hi chuelibrueder,

Thanks for sharing this!
: Re: google calenendar doesn't recognize spezial characters
: cloo December 07, 2010, 04:56:12 PM
well, nice to see you can deal with this.
But this solution is only for German umlauts, right? And I should add characters of my language to the array. 
Where did you get these from?
:
[i][i] ü", "ä", "ö", "Ãœ", "Ä", "Ö" ? [/i][/i]I need the  equivalents for ą, ę, ė, ų, ū, į, č, š, ž.
: cialis vs levitra comparison
: Baveskara July 29, 2022, 05:30:29 AM
cialis on sale in usa (https://abrandcialis.com) Reduction in the incidence of cardiotoxicity if patients treated with sequential anthracyclines in both lisinopril and carvedilol arms
: cialis 2.5 mg online india
: Baveskara January 08, 2023, 10:22:49 AM
New cases 99, 780 ordering tamoxifen and clomid (http://nolvadex.lol)
: cialis professional wikipedia
: Baveskara January 08, 2023, 10:24:50 AM
generic lasix (https://lasix.autos) All recordings were done at 32 34 C
: has is there a generic version of tadalafil
: Baveskara February 13, 2023, 10:35:04 AM
Toney NxUYTgtwxDcJJI 6 27 2022 lasix renal scan (https://lasix.autos) Fija?‚kowska, Agata J?™drejko, Karol Su?‚kowska Ziaja, Katarzyna Ziaja, Marek Ka?‚a, Katarzyna and Muszy?„ska, Bo??ena 2022
: cialis cause hiccups
: Baveskara February 13, 2023, 10:35:41 AM
HRs for recurrence according to dichotomized MDR 5 vs real cialis online (https://cialisshop.best) The authors also performed in vivo experiments with the dendronized liposome nanoplatform in mouse xenograft models MDA MB 231 cells