[EventCalendar] ec3_get_events() not translating ampersands into
character entities
ejm
cq547 at torfree.net
Fri Oct 5 16:07:21 UTC 2007
Update...
In eventcalendar3 > template-functions.php I now have replaced
$data['TITLE'] = $entry->post_title;
with
$data['TITLE'] = 'Subject: '.htmlentities($entry->post_title);
This shows "Subject:" in front of each title and the ampersands are
changed to their character entities but it produces the following
message when trying to validate the page:
..............................................
Sorry, I am unable to validate this document because on line 619 it
contained one or more bytes that I cannot interpret as utf-8 (in
other words, the bytes found are not valid values in the specified
Character Encoding). Please check both the content of the file and the
character encoding indication.
The error was: utf8 "\x80" does not map to Unicode
..............................................
peacemakers.ca.etherwork.net/bulletins/
-ejm
P.S. In an effort to keep spammers at bay, I would prefer that the
address of the peacemakers wordpress site NOT be made into a link for
these archives.
On Fri, 05 Oct 2007 16:15:03 +0100, Alex Tingle <alex at firetree.net>
wrote:
>ejm wrote:
>> With that coding, the ampersands do get translated and the main page
>> displays in Firefox. However, any attempt to validate the page fails:
>> the validation page states that there are now characters that do not
>> belong in UTF-8.
>
>Can you post an example URL that shows this behaviour? The example
>you've posted (above) gets validation errors, but clearly hasn't had the
>titles run through htmlentities(). Here's a snippet...
More information about the EventCalendar
mailing list