Page 1 of 1

entities in titles: sometimes they are expanded...

Posted: Sat Aug 27, 2005 2:14 am
by dmg
Entities in the title of a story (such as accented characters) are sometimes expanded, and sometimes are not. See this entry:

http://turingmachine.org/silvernegative ... e;moc.html

The first title of the entry reads correctly: Cuauhtémoc

but after the date the & has been replaced with &

dmg

Re: entities in titles: sometimes they are expanded...

Posted: Mon Aug 29, 2005 2:25 pm
by garvinhicking
If you use HTML entities in the title of your entry, they cannot be encoded correctly. You must use the proper "é" characters in ISO-8859-1 charset, and NOT the HTML entity when posting. Serendipity does all the replacements for you then.

Regards,
Garvin

Posted: Tue Jan 23, 2007 11:46 am
by jdrodrigues
Can anyone tell me where the encoding is done ? I need to disable it.

Cheers,
Joel

Posted: Tue Jan 23, 2007 12:09 pm
by garvinhicking
jdrodigues: At which place? There are several encodings for URLs, for entry titles, for entry bodies, for blog titles, for blog subtitles...

Regards,
Garvin

Posted: Tue Jan 23, 2007 12:33 pm
by jdrodrigues
Hi Garvin, it's ok , I remembered that I'd already dealt with the issue and where - I made an extra variable:

$serendipity['head_title'] = htmlspecialchars($title[0]);
$serendipity['xhead_title'] = $title[0];

This is because I do use HTML entities in article titles.

:)