Share » Forums » Setup & design » & a m p ; problem

& a m p ; problem

& a m p ; problem

Tuesday 23 May 2006 11:29:02 am - 6 replies

Author Message

b j

Tuesday 23 May 2006 11:33:02 am

The same problem exist here.... hm...

b j

Tuesday 23 May 2006 11:47:04 pm

help? it is not working still...

how to enforce EZ to not store & aring; as a & amp;aring ??

b j

Thursday 25 May 2006 2:36:04 am

so the only way is to change the file: ezsimplifiedxmlinput.php ?

if ( $tagName == 'literal' )
{
$tagContent = $childTag->content();
$tagContent =& str_replace("&lt;", "<", $tagContent );
$tagContent =& str_replace("&gt;", ">", $tagContent );
$tagContent =& str_replace("&apos;", "'", $tagContent );
$tagContent =& str_replace("&quot;", '"', $tagContent );
$tagContent =& str_replace("&amp;", "&", $tagContent );
$childTagText .= $tagContent;
}

I will explain my problem again:

I added the norwegian translation to my article. I'm using a XML field for text of an article. When I put there some norwegian text, for example:

"
Du kan prøve å skrive inn sidens adresse på nytt, eller forsøke å finne den via søkefeltet under
"

I got always that stupid & a m p ! It makes me sick!!!

Help....

b j

Thursday 25 May 2006 2:41:52 am

grrr

Kristof Coomans

Thursday 25 May 2006 6:07:00 am

Hi bj

So you want to have å in your text? (exactly like it is displayed here now)
Just type that character then, and make sure your eZ publish site is using the right charset (I would recommend to use utf-8 from the beginning).

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

b j

Friday 26 May 2006 2:20:23 am

Problem is that only way for me is copy/paste from MSWORD, so I cannot write anything like that from keyboard. Im using the english keyboard and just trying to add the norwegian translation of some article. After I coppied it to XML field it parsed by EZ to that form of &something. That was a problem...

Anyway, I solved it by changing the sourcecode... But I'm not sure its safe...

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu