In general, what is the best method to decode special characters from google data?
-------------- I tried utf8_decode() in the outputCalendar() function to echo an event with special characters. But utf8_decode() only handles ISO_8859-1 which doesn't include some French and Dutch characters. (http://en.wikipedia.org/wiki/ ISO_8859-1). Perhaps I can use iconv with ISO-8859-15? Doesn't seem to work. If I create an event called "Test: Œ, œ, Ÿ, Š, š, Ž, ž", everything is fine on the web site, google accepts it, renders it just fine. If I then update my outputCalendar() function to use iconv('UTF-8', 'ISO-8859-15', $event->title->text), then I get the following event title: "Test: ¼, ½, ¾, ¦, ¨, ´, " ---------- Here is the function: function outputCalendar($client) { $gdataCal = new Zend_Gdata_Calendar($client); $eventFeed = $gdataCal->getCalendarEventFeed(); echo "<ul>\n"; foreach ($eventFeed as $event) { echo "\t<li>" . iconv('UTF-8', 'ISO-8859-15', $event->title- >text) . " (" . $event->id->text . ")\n"; echo "\t\t<ul>\n"; foreach ($event->when as $when) { echo "\t\t\t<li>Starts: " . $when->startTime . "</li>\n"; } echo "\t\t</ul>\n"; echo "\t</li>\n"; } echo "</ul>\n"; } ------------ Thank you, Bill --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Calendar Data API" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/google-calendar-help-dataapi?hl=en -~----------~----~----~----~------~----~------~--~---
