#8464 closed defect (bug) (fixed)
XML Parsing Error: undefined entity
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 2.7 | Priority: | normal |
Severity: | normal | Version: | 2.7 |
Component: | I18N | Keywords: | has-patch |
Focuses: | Cc: |
Description
XML Parsing Error: undefined entity Location: Adresse: http://bueltge.de/comments/feed/ Line Number 8, Column 21: <title>Kommentare für bueltge.de [by:ltge.de]</title> ---------------------------^
The problem is the translation of 'on' -> für, so ü = ü
Attachments (2)
Change History (13)
#2
in reply to:
↑ 1
@
16 years ago
Replying to DD32:
the ü entity is a valid entity, however appears to not be included in the refence list which the XML parser is using.
WP includes a function ent2ncr() which would convert ü to ü, would that be a valid solution for this? Or is this not a 'real' problem with WordPress, and the XML parser isnt reconising the non-english entities?
The only named entities part of the XML standard are quot, amp, apo, gt and lt, all the others are part of HTML's DTD. ent2ncr
was introduced exactly for this reason: add_filter('the_content_rss', 'ent2ncr', 8);
Wrapping all translations in ent2ncr()
will do the trick, but I will think of a more general solution. Next time we will surely forget to add it.
#3
@
16 years ago
The only named entities part of the XML standard are quot, amp, apo, gt and lt, all the others are part of HTML's DTD.
Ah, For some odd reason i was thinking that XML included the HTML DTD's entities..
#6
in reply to:
↑ 5
;
follow-up:
↓ 8
@
16 years ago
Replying to nbachiyski:
Will that fix come by update too? Or what should we do?
#8
in reply to:
↑ 6
@
16 years ago
Replying to dome90:
Replying to nbachiyski:
Will that fix come by update too? Or what should we do?
If you are ready to wait until middle of next week, it will be in 2.7. If you need it sooner, just apply the patch in the attached file above.
#9
@
16 years ago
- Resolution fixed deleted
- Status changed from closed to reopened
A ü sneaked in.
#11
@
5 years ago
After 10 years, this bug seems to be back in 5.2.1
On a completely fresh install (no plugins, default theme) I added a tag with a ' (single quote) in the title. This converts to ’
in the feed title. This in turn, generates
This feed does not validate. line 11, column 9: XML parsing error: <unknown>:11:9: undefined entity
for the tag feed on https://validator.w3.org/feed/
See https://validator.w3.org/feed/check.cgi?url=https%3A%2F%2F2607.fr%2Ftag%2Flapostrophe%2Ffeed%2F for example
the ü entity is a valid entity, however appears to not be included in the refence list which the XML parser is using.
WP includes a function ent2ncr() which would convert ü to ü, would that be a valid solution for this? Or is this not a 'real' problem with WordPress, and the XML parser isnt reconising the non-english entities?