WordPress.org

Forums

All-in-One Event Calendar
Compatibility with French - accentuated letters - Google export (6 posts)

  1. Manu-PB
    Member
    Posted 3 years ago #

    Ai1ec is a great plugin.
    I'm using it with the French localization, which seems OK inside my site : http://www.coach-abondance.com.
    However, the integration with Google agenda is not working properly : none of the accentuated letters are recognized, and some characters are replaced with their HTML code, which makes a jammed text in Google.
    Did someone already solve this issue ?
    Thanks for help

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

  2. ullemehner
    Member
    Posted 3 years ago #

    This thread/post might help you:

    http://wordpress.org/support/topic/plugin-all-in-one-event-calendar-google-url-import-missing-utf8-encoding

    Unfortunately the file class-ai1ec-exporter-controller.php ist not accessable through wordpress plugin editor. You've got to ftp or sth to your webspace and edit this file.
    Search for the line containing
    header( 'Content-type: text/calendar
    and make it just looking like this:
    header( 'Content-type: text/calendar; charset=utf-8' );

    Then resubscribe you calendar in Google.

    Hope this will make it into next Ai1ec update ...

    Cheers,
    Ulle

  3. Manu-PB
    Member
    Posted 3 years ago #

    Thanks ullemehner,
    This is better :
    - Latin-1 characters are now correct, such as é, è, ç ...
    - but in the name of agenda and events title, some other ASCII characters are turned into their decimal value, such as
    – : #8211 or ' : #39
    What is wrong ?

  4. ullemehner
    Member
    Posted 3 years ago #

    Hi,

    I checked a bit deeper what gets exportet from your Calendar and I see that it is no charset related problem. The calender items are already written with those HTML entities. It might to be seen when editing your calender posts and switching to HTML view pane.

    When events get exported as ics/iCal , all "," and ";" get escaped to "\," and "\;". Consequently a "&#8211 ;" becomes "&#8211\;" and can not be rendered as HTML character (by Google).

    I couldn't reproduce to inject HTML entities (with these decimal character references) like "&#8211 ;" into my event posts, though. When pasted in HTML modus, they get automatically converted to their UTF8 version when switching back to visual mode (and stay in UTF8 then, even in HTML view). I wonder how you managed to get them in? Okay, I have installed plugin "TinyMCE Advanced" - it could make the difference.

    So, there is nothing Ai1ec plugin can help you. It seems, that you need to re-edit all your events (which get wrongly imported in Google) using UTF8 characters instead of HTML entities.

    Cheers,
    Ulle

    Note: I can't write HTML entities here - they get automatically converted when posted ;) . So what I what I wanted to write ist &#8211 ; without the space between 1 and ; .

  5. Manu-PB
    Member
    Posted 3 years ago #

    Hi,
    Many thanks for looking at this.
    I am very surprised by the following :

    1 - when I type the post title with a " ' " i.e. with "&#39 ;" only the post meta keep this, while the post title and post-content turn this into &#8217 which is Latin 1 - ISO 8859 charset. This is NOT specific to ai1ec, any regular post behaves similarly.

    2 - while post-tile and post-content are both coded with this &#8217, they behave diffrently when passed to Google agenda with utf-8 charset : the title does not convert the character #, the content does.

    This is the title :
    La roue d&#8217 ;Hudson

    This is the content :
    la roue d’Hudson

    I have made several trials to convert $str to utf-8 or define charset=ISO-8859-1, without success.

    When I replace " ' " with &acute (spacing acute accent) in the title, the code is not passed, which looks better but is still not satisfactory :

    The title becomes :
    La roue dHudson

    I hope that all this information could give you some insight that might help me ... Thanks in advance !

  6. ullemehner
    Member
    Posted 3 years ago #

    Hi all,

    in this thread

    Exported Calendar shows htmlentities

    shrmn suggests something promising for html entities in titles.

    Cheers,
    Ulle

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • All-in-One Event Calendar
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic