Support » Plugin: Seriously Simple Podcasting » feed podcast invalid xml

  • Resolved kkretsch

    (@kkretsch)


    The itunes:subtitle field is truncated with the last char half of a utf8 umlaut. All other specialchars (äöü) are perfectly well written, even in this one tag, but it ends with a would-be-ü which display only as a black square with a question mark in it.

    It might be a problem with a possible truncation to a maximum string length, where strings are no more plain bytes but a mixture of 1 or two bytes, depending of the chars. If it tries to truncate in the middle of a utf sequence it might fail.

    Currently you can see it here:
    https://www.liebe-regierung.de/feed/podcast
    line 87 with an article title of “Wir brauchen ein Royal Baby”

    Otherwise a realy great plugin.

    https://wordpress.org/plugins/seriously-simple-podcasting/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter kkretsch

    (@kkretsch)

    I just changed the line #340 in feed-podcast.php from

    $itunes_excerpt = substr( $itunes_excerpt, 0, 224 );

    to

    $itunes_excerpt = mb_substr( $itunes_excerpt, 0, 224 );

    and it worked.

    Plugin Contributor Hugh Lashbrooke

    (@hlashbrooke)

    As I was reading your first post here I realised the issue will be fixed by using mb_substr and then you worked that out yourself too 🙂

    I will be deploying v1.9.8 later today containing a couple of small fixes and one of them will be updating the feed template to use the mb function instead. If you have edited the feed template file in your plugin folder then this update will overwrite that, but it will contain the same fix (along with some others).

    Thanks for bringing this to my attention!

    Cheers,
    Hugh

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘feed podcast invalid xml’ is closed to new replies.