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, which is now in beta. ocPortal 9 will be 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

1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Contract

Your name:
Your message: