HTML Logo by World Wide Web Consortium (www.w3.org). 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 compo.sr 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:

Code


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

Code

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

and change:

Code

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

Code

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: