Are line feeds supported?

ayourayour Registered Users Posts: 5 Beginner grinner
I am using:
http://api.smugmug.com/services/api/rest/1.2.2/?method=smugmug.images.changeSettings

I am trying to set the caption of a picture to be:

Front row: Bob, Bill, Brian
Back row: Jill, Jan, Julie



I am trying to maintain the linefeeds. I can do this on the website without any problems. However, if I try to use the API with a URL Encode GET




The new caption on the picture is:
Front row: Bob, Bill, Brian%D«ack row: Jill, Jan, Julie


I know that I missing something simple here. Do I need to encode it a different way?

Comments

  • devbobodevbobo Registered Users, Retired Mod Posts: 4,339 SmugMug Employee
    edited February 2, 2009
    instead of using ...

    "Brian%D%ABack"

    try....

    "Brian%0D%0ABack" thumb.gif

    Cheers,

    David
    David Parry
    SmugMug API Developer
    My Photos
  • ayourayour Registered Users Posts: 5 Beginner grinner
    edited February 2, 2009
    it seems that any url encoded value must be %## where ## is the hex code. If the hex code is a single digit (in my case it was just D & A), it must have a preceding 0

    so can't use %D for CR it must be %0D and likewise %A for LF must be %0A.

    Thanks for the help.
Sign In or Register to comment.