in reply to Regex to encode entities in XML

I know you said that you'd rather not use another module, but considering that it's probably already in use by a module that you use in framechat, think about using URI::Escape. Something like:
$xml=uri_escape($xml,"\x80-\xff");
should preserve the hi-bit characters without making XML::Simple barf, right? (It seems to work correctly with pmchat).

Update: Duh, right: HTML entities != HTTP Escaped characters.

Replies are listed 'Best First'.
Re: Re: Unescaped entities in XML
by epoptai (Curate) on Jun 11, 2001 at 06:02 UTC
    Hmm, maybe the title should mention 'encoding' rather than 'escaping'. (done)

    I need to turn ¶ into ß not %B6 as uri_escape does - and really just want to extend that regex, or use a series of them, to encode all those nasty characters.