Inserting events that contain non-ASCII characters using the Google Calendar API (PHP)

前端 未结 1 968
[愿得一人]
[愿得一人] 2021-01-19 17:13

I\'m having trouble inserting events using v3 of the Google Calendar API (PHP).

If a description for an event contains a character such as the pound sign £, the even

相关标签:
1条回答
  • 2021-01-19 17:45

    It turns out there's an easy solution to this. I'd set the HTTP header to use the utf-8 charset but hadn't specifically encoded my description. To add my description to the event I'm now using:

    $event->setDescription(utf8_encode($description));
    
    0 讨论(0)
提交回复
热议问题