Skip to content

ParseError if emojis/unicode in description/text #206

@Bouni

Description

@Bouni

I try to load a shared calendar from a Nextcloud instance via requests.
One of the calendar entries has emojis in the description, ics throws an exception when it comes accross the first emoji:

The error:

tatsu.exceptions.FailedToken: (1:27) expecting '\r\n' :
DESCRIPTION:Hallo zusammen😊\n\nEndlich Ist es soweit....🙃😎😁\n\n
                          ^
CRLF
contentline
start

During handling of the above exception, another exception occurred:

File "/usr/lib/python3.7/site-packages/ics/grammar/parse.py", line 78, in parse
    raise ParseError()
ics.grammar.parse.ParseError

The section of the ical:

BEGIN:VEVENT
CREATED:20190422T210447
DTSTAMP:20190422T210447
LAST-MODIFIED:20190422T210447
UID:NTG0P2GYEMBOTMH04Z4OP
SUMMARY:Party bei <redacted>
CLASS:PUBLIC
DESCRIPTION:Hallo zusammen😊\n\nEndlich Ist es soweit....🙃😎😁\n\n
STATUS:CONFIRMED
DTSTART;TZID=Europe/Berlin:20190601T140000
DTEND;TZID=Europe/Berlin:20190601T235500
END:VEVENT

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions