[Asterisk-Dev] Manager XML
Olle E. Johansson
oej at edvina.net
Tue Mar 1 14:45:34 MST 2005
Colin Anderson wrote:
>>However, you are going to need to add a function to take a string value
>>and XML-escape it, so that it doesn't contain characters that must be
>>entities in XML. These include:
>
>
> Just do your opening tag like this:
>
> <?xml version="1.0" encoding="iso-8859-1" ?>
>
> the "Encoding" part takes care of 90% of those issues for you, most XML
> parsers will have no problem with this. Ran into the same issue when I was
> doing an XMLRPC implementation to transmit purchase orders to a business
> partner. Our database had loads of those "illegal" chars and adding the
> "encoding" part took care of it.
>
> At least, using MSXML-DOM.
I was going to add iso-8859-1 anyway, since UTF8 is nothing we do in
Asterisk. But this will not handle what Kevin said, so both are valid
comments. Thank you for the input!
/O
More information about the asterisk-dev
mailing list