NYCPHP Meetup

NYPHP.org

[nycphp-talk] Sorry guys, VERY bad coding night tonight!

D C Krook dkrook at hotmail.com
Wed Sep 3 11:20:23 EDT 2003


I had a similar problem parsing ampersands in XML and converting the page to 
XHTML via PHP.  To end up with compliant XHTML entities, I had to double 
encode ampersands in the XML like so:

<subcategory>Content Management, Versioning &#38;#38; 
Delivery:</subcategory>

If the sample above gets processed in your mail client, that's
"ampersand - pound - 3 - 8 - pound - 3 - 8"




> > How can I ensure that when going back and forth between HTML, PHP
> > and XML that "å" REMAINS "å" AS IS???
>
>I don't really understand, but maybe you can use &amp; for the ampersands?
>
>Chris

_________________________________________________________________
MSN 8 with e-mail virus protection service: 2 months FREE* 
http://join.msn.com/?page=features/virus




More information about the talk mailing list