• Steven Wittens's avatar
    - Improved XML encoding fix. There is now a function drupal_xml_parser_create(): · b817bdb3
    Steven Wittens authored
     * Wrapper around xml_parser_create() which extracts the encoding from the XML
     * data first and sets the output encoding to UTF-8. This function should be
     * used instead of xml_parser_create(), because PHP's XML parser doesn't check
     * the input encoding itself.
     * This is also where unsupported encodings should be converted.
     * Callers should take this into account: $data might have been changed after
     * the call.
     * @param $data The XML data which will be parsed later.