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.
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
"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*
<value><string>Some sample products: (:div
class="flexslider":) * %list slides%
Attach:birdlove-med.jpg * Attach:bugpaw-med.jpg *
Attach:cheetahs-med.jpg * Attach:chewtoy-med.jpg *
Attach:Chicken-med.jpg (:div1end:) (:div:) [[!My
Products]] (:title Products:)</string></value>
And finally, in Ecto:
Some sample products:#10#10(:div class="flex-container":)#10(:div1
class="flexslider":)#10* %list slides% Attach:birdlove-med.jpg#10*
Where is the ascii translation taking place? Is there a way to stop it from
encoding the newlines?
On Feb 6, 2014, at 7:31 PM, Ken Almond wrote:
>> newlines \n recoded to
> 10 is the ASCII code for LF (e.g. newline) - I'm not sure if you are trying
> to avoid \n(s) or expect them to be a different value.
> -----Original Message-----
> From: phpxmlrpc-boun...@lists.usefulinc.com
> [mailto:phpxmlrpc-boun...@lists.usefulinc.com] On Behalf Of Crisses
> Sent: Thursday, February 06, 2014 3:40 PM
> To: firstname.lastname@example.org
> Subject: [phpxmlrpc] Newline issue
> I'm new here -- thanks for a great package.
> I'm working on MetaWeblog support for PmWiki -- we had Blogger support with
> XMLRPC years ago, the package maintainer disappeared and I'm trying to bring
> it up-to-date.
> I've got some of it working, but the contents of the page are coming through
> with newlines \n recoded to
> I tried specifying "string", but that didn't help.
> Is there a php encoding I should run on the string first, or class method I
> should be using? In the code below, it's "description" that has the
> problem. The text being sent should be RichText or plain text on the other
> end: newlines need to be preserved. I'm testing out my XMLRPC on the Ecto
> Thank you!!!
> return new xmlrpcval(
> "postid" => new xmlrpcval($page['name']),
> "title" => new xmlrpcval($title),
> "userid" => new xmlrpcval($page['author']),
> "dateCreated" => new xmlrpcval($lastmodified,
> "description" => new xmlrpcval("$EditText",
> "link" => new xmlrpcval($link),
> phpxmlrpc mailing list
phpxmlrpc mailing list