WordPress.org

Ready to get started?Download WordPress

Forums

All-in-One Event Calendar
Google URL import - missing utf8 encoding (1 post)

  1. ullemehner
    Member
    Posted 2 years ago #

    Using ai1ec version 1.2.5 and 1.3

    When adding an ai1ec calendar in Google via URL, all non ASCII chars appears as 2 question marks (2 byte encoding in utf-8).

    My website is set up in UTF8 which actually seems to be the standard encoding for content-type text/calendar. Google bug or feature?

    My solution:

    In file class-ai1ec-exporter-controller.php
    in wp-content/plugins/all-in-one-event-calendar/app/controller/
    in line 91

    just add the charset so that it reads like this:
    header( 'Content-type: text/calendar; charset=utf-8' );

    I couldn't find some variable which holds the current charset of the website (wordpress). So if your wordpress is not utf8, this can make everything worse. One might consider checking website's html source code for content-type and change the line appropriate.
    So mine is
    <meta http-equiv="Content-Type" content="UTF-8" />

    Cheers,
    Ullle

    http://wordpress.org/extend/plugins/all-in-one-event-calendar/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic