Skip to content

RSS feed contains invalid characters #2110

In review

Description

@DanielRuf

Probably related to #2094

The feed at https://www.php.net/feed.atom contains some weird characters:

        The theme of this edition is "次�����ら始�る。" (What's next starts here.)<br/>

This is just one example.

Here is a complete list from https://validator.w3.org/feed/check.cgi:

Sorry
This feed does not validate.

line 3791, column 3: Undefined content element: p (22 occurrences) [help]

<p>ConFoo is back for its 23rd edition, at Hotel Bonaventure in Montreal, ...

^
line 8767, column 4: Undefined content element: div (9 occurrences) [help]

<div xmlns="http://www.w3.org/1999/xhtml">
^

line 11873, column 64: Invalid character in a URI: https://loop-run.io [help]

^ [line 17395](https://validator.w3.org/feed/check.cgi#l17395), column 15: Undefined content element: a [[help](https://validator.w3.org/feed/docs/error/UndefinedElement.html)]
 Speakers, <a href="https://cfp.phpconference.nl/">the call for papers</ ...
           ^

line 17395, column 78: Unexpected Text (4 occurrences) [help]

 Speakers, <a href="https://cfp.phpconference.nl/">the call for papers</ ...
                                                                          ^

line 19682, column 0: Undefined content element: ul [help]

Activity

  1. DanielRuf commented on Nov 23, 2026

    @DanielRuf
    ContributorAuthor

    #2100 does at least not cover these things. To me it looks like unicode / utf8 encoding is not correctly applied.

  2. sy-records commented on Nov 26, 2026

    @sy-records
    Member

    Thank you for your feedback. The character issue is a browser problem; if you change the encoding to UTF-8, the page will load properly.

    The other issues have been fixed in my new PR.

    image

    By the way, please don't submit multiple issues for the same problem; you can address it all in a single issue.

  3. DanielRuf commented on Nov 26, 2026

    @DanielRuf
    ContributorAuthor

    By the way, please don't submit multiple issues for the same problem; you can address it all in a single issue.

    Ah ok. I was not sure because the other issue was already closed.
    So it is fine then to add additional details to already closed issues?

  4. sy-records commented on Nov 26, 2026

    @sy-records
    Member

    Of course, you can just reopen #2094.

  5. DanielRuf commented on Nov 26, 2026

    @DanielRuf
    ContributorAuthor

    Regarding the invalid character (utf8 / unicode), it seems the response headers do not contain any utf8 encoding:

    content-type
    application/atom+xml

    Not sure if this is only a problem for browsers or also for other clients.
    Probably application/atom+xml; charset=UTF-8 makes it a bit better.

  6. DanielRuf commented on Nov 26, 2026

    @DanielRuf
    ContributorAuthor

    Of course, you can just reopen #2094.

    How as non-member?

    image
  7. sy-records commented on Nov 26, 2026

    @sy-records
    Member

    Oh, GitHub changed this behavior, so let's just ignore it.

    Modifying the Content-Type in the header may require @derickr

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions