<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Thanks for a quick answer.  I figured that was the ASCII for LF/newline.  Unfortunately Ecto is displaying them as "#10" instead of displaying a newline.  I thought I was doing something wrong, or at least others would have a similar issue and know how to fix it.</div><div><br></div><div>Do you know where the newlines are being encoded?  I dumped the $EditText string to my log right before sending it to xmlrpcval and it has \n, not ascii encoding.  i.e.:</div><div><br></div><div>"Some sample products:\n\n(:div class="flex-container":)\n(:div1 class="flexslider":)\n* %list slides% Attach:birdlove-med.jpg\n* Attach:bugpaw-med.jpg\n* Attach:cheetahs-med.jpg\n* Attach:chewtoy-med.jpg\n* Attach:Chicken-med.jpg\n(:div1end:)\n(:div:)\n\n[[!My Products]]\n(:title Products:)"\n</div><div><br></div><div>becomes:</div><div><value><string>Some sample products:&#10;&#10;(:div class=&quot;flex-container&quot;:)&#10;(:div1 class=&quot;flexslider&quot;:)&#10;* %list slides% Attach:birdlove-med.jpg&#10;* Attach:bugpaw-med.jpg&#10;* Attach:cheetahs-med.jpg&#10;* Attach:chewtoy-med.jpg&#10;* Attach:Chicken-med.jpg&#10;(:div1end:)&#10;(:div:)&#10;&#10;[[!My Products]]&#10;(:title Products:)</string></value></div><div><br></div><div>And finally, in Ecto:</div><div><br></div><div>Some sample products:#10#10(:div class="flex-container":)#10(:div1 class="flexslider":)#10* %list slides% Attach:birdlove-med.jpg#10* Attach:bugpaw-med.jpg#10* Attach:cheetahs-med.jpg#10* Attach:chewtoy-med.jpg#10* Attach:Chicken-med.jpg#10(:div1end:)#10(:div:)#10#10[[!My Products]]#10(:title Products:)</div><div><br></div><div>Where is the ascii translation taking place?  Is there a way to stop it from encoding the newlines?</div><div><br></div><div>Thanks again!</div><div><br></div><div><div><div>
<p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Comic Sans MS" size="3" style="font: 12.0px Comic Sans MS">Crisses</font></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px"><br></p></div><div><div>On Feb 6, 2014, at 7:31 PM, Ken Almond wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div><blockquote type="cite">newlines \n recoded to &#10;<br></blockquote>10 is the ASCII code for LF (e.g. newline) - I'm not sure if you are trying<br>to avoid \n(s) or expect them to be a different value. <br><br>-----Original Message-----<br>From: <a href="mailto:phpxmlrpc-bounces@lists.usefulinc.com">phpxmlrpc-bounces@lists.usefulinc.com</a><br>[mailto:phpxmlrpc-bounces@lists.usefulinc.com] On Behalf Of Crisses<br>Sent: Thursday, February 06, 2014 3:40 PM<br>To: <a href="mailto:phpxmlrpc@lists.usefulinc.com">phpxmlrpc@lists.usefulinc.com</a><br>Subject: [phpxmlrpc] Newline issue<br><br>Hi,<br><br>I'm new here -- thanks for a great package.<br><br>I'm working on MetaWeblog support for PmWiki -- we had Blogger support with<br>XMLRPC years ago, the package maintainer disappeared and I'm trying to bring<br>it up-to-date.<br><br>I've got some of it working, but the contents of the page are coming through<br>with newlines \n recoded to &#10;<br><br>I tried specifying "string", but that didn't help.<br><br>Is there a php encoding I should run on the string first, or class method I<br>should be using?  In the code below, it's "description" that has the<br>problem.  The text being sent should be RichText or plain text on the other<br>end: newlines need to be preserved.  I'm testing out my XMLRPC on the Ecto<br>console.<br><br>Thank you!!!<br><br><br><br>    return new xmlrpcval(<br>                    array(<br>                          "postid" => new xmlrpcval($page['name']),<br>                          "title" => new xmlrpcval($title),<br>                          "userid" => new xmlrpcval($page['author']),<br>                          "dateCreated" => new xmlrpcval($lastmodified,<br>"dateTime.iso8601"),<br>                          "description" => new xmlrpcval("$EditText",<br>"string"),<br>                          "link" => new xmlrpcval($link),<br>                          ),"struct");<br><br>Crisses<br><br>_______________________________________________<br>phpxmlrpc mailing list<br><a href="mailto:phpxmlrpc@lists.usefulinc.com">phpxmlrpc@lists.usefulinc.com</a><br><a href="http://lists.usefulinc.com/cgi-bin/mailman/listinfo/phpxmlrpc">http://lists.usefulinc.com/cgi-bin/mailman/listinfo/phpxmlrpc</a><br><br></div></blockquote></div><br></div></div></body></html>