Ah, it seems I have to use utf8_decode().  Is that correct?

For example, I updated the outputCalendar() function found in the
developer's guide / getting started (http://code.google.com/apis/
calendar/docs/1.0/developers_guide_php.html) to print the $event-
>title->text with utf8_decode();

Does this look like how I should get decoded data back out of Google
to stuff into my database?  That certainly seems to work when printing
to the browser.

Thanks,
Bill

---------

function outputCalendar($client)
{
  $gdataCal = new Zend_Gdata_Calendar($client);
  $eventFeed = $gdataCal->getCalendarEventFeed();
  echo "<ul>\n";
  foreach ($eventFeed as $event) {
    echo "\t<li>" . utf8_decode($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";
}

outputCalendar($client);


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Data Protocol" 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-help-dataapi?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to