HTML Logo by World Wide Web Consortium ( Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS. ocPortal 9 is superseded by Composr 10.

Head over to for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.

Problems with XML data sync (#catalogues_507) - Comments

Login / Search

 [ Join | More ]
Title Problems with XML data sync
Description Non-ASCII characters (e.g. special symbols, or non-latin alphabetic characters) cause problems with the data sync.

Also, spaces may appear within multi-line content.
Affects Most users with non-trivial databases
Fix In sources/xml_storage.php change:


   $xml_data=unixify_line_format($xml_data,$parser_charset); // Fixes Windows characters


   $xml_data=unixify_line_format('<'.'?xml version="1.0" encoding="'.xmlentities($parser_charset).'"?'.'>'.$xml_data,$parser_charset); // Fixes Windows characters

and change:


return preg_replace('#(^|\n)#','${1}'."\t",$in);


return $in;

Back to the top

Comments / View

There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: