did I miss something?  Why not just properly HTML encode your content
before putting it in the XML.  Then there's no need to unencode at
all... let the browser do the work.  Single quotes should encode as:
'

hth

On 7/18/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Hi, I've an xml file used as the text content source for both a flash and a
> xhtml version of a site.
> 
> The text/node content contains the odd quotation mark and when rendering the
> xhtml version of the site (locally using PHP and XSLT) the single quotation
> character appears as the characters:  ’
> 
> Could anyone suggest how to best solve this?
> 
> Two non-ideal solutions I think might work...
> 
> 1.  url encode all node content, then unencode before delivery.   This would
> be a major pain for allowing the client to update the xml file and would
> necessitate creating a quite sophisticated (by my standards) log in and change
> system... Is this simply 'how it is' and the best way to solve this problem?
> (If so can anyone point to a source for creating a log in and change system
> for a xml file)
> 
> 2.  After creating the page with the xsl stylesheet, whilst still in php,
> would be to search for the string ’ and simply replace it with ' .
> But I wonder if this wrongly outputted string might be different on different
> platforms/browsers?
> 
> 
> Would be very grateful for any help.
> 
> Cheers,
> 
> Pete
> 
> 
> 
> ____ • The WDVL Discussion List from WDVL.COM • ____
> To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] or
> use the web interface http://e-newsletters.internet.com/discussionlists.html/
>        Send Your Posts To: [email protected]
> To change subscription settings, add a password or view the web interface:
> http://intm-dl.sparklist.com/read/?forum=wdvltalk
> 
> ________________  http://www.wdvl.com  _______________________
> 
> You are currently subscribed to wdvltalk as: unknown lmsubst tag argument: ''
> To unsubscribe send a blank email to [EMAIL PROTECTED]
> To unsubscribe via postal mail, please contact us at:
> Jupitermedia Corp.
> Attn: Discussion List Management
> 475 Park Avenue South
> New York, NY 10016
> 
> Please include the email address which you have been contacted with.
>

____ • The WDVL Discussion List from WDVL.COM • ____
To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] or
use the web interface http://e-newsletters.internet.com/discussionlists.html/
       Send Your Posts To: [email protected]
To change subscription settings, add a password or view the web interface:
http://intm-dl.sparklist.com/read/?forum=wdvltalk

________________  http://www.wdvl.com  _______________________

You are currently subscribed to $subst('List.Name') as: 
$subst('Recip.EmailAddr')
To unsubscribe send a blank email to $subst('Email.UnSub')
To unsubscribe via postal mail, please contact us at:
Jupitermedia Corp.
Attn: Discussion List Management
475 Park Avenue South
New York, NY 10016

Please include the email address which you have been contacted with.

Reply via email to