Problem with special characters when showing “Affiliation"

Are you responsible for making OCS work -- installing, upgrading, migrating or troubleshooting? Do you think you've found a bug? Post in this forum.

Moderators: jmacgreg, michael, John

Forum rules
The Public Knowledge Project Support Forum is moving to http://forum.pkp.sfu.ca

This forum will be maintained permanently as an archived historical resource, but all new questions should be added to the new forum. Questions will no longer be monitored on this old forum after March 30, 2015.
obi
Posts: 52
Joined: Wed Jun 09, 2004 5:56 am
Contact:

Problem with special characters when showing “Affiliation"

Postby obi » Wed Sep 22, 2010 3:15 am

Hi,
We have problem with special characters only when showing “Affiliation” on the browser. See an example at the URL: http://www.ub.uit.no/baser/ocs/index.ph ... rt/bio/2/0.

We are using OCS version 2.3.3.1 and UTF-8. We need help or point to us where we can make corrections.

Cheers
Obi

mcrider
Posts: 952
Joined: Mon May 05, 2008 10:29 am
Location: Vancouver, BC

Re: Problem with special characters when showing “Affiliation"

Postby mcrider » Fri Sep 24, 2010 12:57 pm

Hi Obi,

I've posted this as a bug: http://pkp.sfu.ca/bugzilla/show_bug.cgi?id=5950. I'm not sure if there is a reason for escaping the affiliation value, but in the mean time you can fix this by going into the templates/rt/bio.tpl file and at around line 23, change

Code: Select all

{if $author->getLocalizedAffiliation()}{$author->getLocalizedAffiliation()|escape}{/if}
to

Code: Select all

{if $author->getLocalizedAffiliation()}{$author->getLocalizedAffiliation()|strip_unsafe_html|nl2br}{/if}

Cheers,
Matt

obi
Posts: 52
Joined: Wed Jun 09, 2004 5:56 am
Contact:

Re: Problem with special characters when showing “Affiliation"

Postby obi » Tue Sep 28, 2010 2:47 am

Hi Matts,
Thank you very much. It works. I removed "escape" and replaced it with "strip_unsafe_html".

Cheers
Obi


Return to “OCS Technical Support”

Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest