jazzband / icalevents

Python module for iCal URL/file parsing and querying.
MIT License
160 stars 72 forks source link

Parsing of the calendar failed #21

Closed RealFriesi closed 1 month ago

RealFriesi commented 6 years ago
Traceback (most recent call last):
  File "C:/Userdir/PycharmProjects/EPDUI/main.py", line 18, in <module>
    frame.eventlist(0, 3, 0, 10, 5, "https://calendar.google.com/calendar/ical/**********/basic.ics")
  File "C:\Userdir\PycharmProjects\EPDUI\epdui\epdui.py", line 85, in eventlist
    ev = events(ical_url)
  File "C:\Userdir\Anaconda3\envs\EPDUI\lib\site-packages\icalevents\icalevents.py", line 30, in events
    found_events += parse_events(content)
  File "C:\Userdir\Anaconda3\envs\EPDUI\lib\site-packages\icalevents\icalparser.py", line 247, in parse_events
    e = create_event(component)
  File "C:\Userdir\Anaconda3\envs\EPDUI\lib\site-packages\icalevents\icalparser.py", line 159, in create_event
    event.summary = str(component.get('summary'))
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe4' in position 28: ordinal not in range(128)

bitmoji

PabloCastellano commented 6 years ago

@Friesinator did you try using Python 3?

RealFriesi commented 6 years ago

yep python 3.6

eigenmannmartin commented 1 month ago

I believe this is fixes - reopen if that is not the case :-)