Skip to content

parse url UTF8 problems #3

@alicenara

Description

@alicenara

I've just want to share something I've added to the code because when I was trying to parse an ical from an URL that has special characters, some fields where broken after saving them in my DB.

In CalFileParser.php, line 101:
Original:
return data
Improvement (found in Stack Overflow):
return mb_convert_encoding($data, 'UTF-8', mb_detect_encoding($data, 'UTF-8, ISO-8859-1', true));

If you want to add it it will be great ^-^
Thanks for your work!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions