special characters not escaped for Asset findAll call

3 views
Skip to first unread message

Aprille Jordan

unread,
Jan 19, 2011, 1:12:42 PM1/19/11
to Sorenson Media Developer Group
When making the findAll call through the Sorenson API (using PHP
bindings), the video descriptions and titles are returning strange
character sequences in place of what should be the actual character.
The actual characters include apostrophes (right quotes), degrees,
french letters with accents, etc.

Here is one example:
For a single right quote, the API returns ’. Not sure how this will
appear in the actual post, but it is a lower case a with accent, a
euro sign, and a trademark symbol.

In the Sorenson SEO tab when editing a video, if the quote is replaced
with the HTML code & # 8 2 1 7 ; the Sorenson API will return it
correctly. However, if the video is edited again it will show the
' (apostrophe) character. When the video is saved the same strange
character sequence listed above appears again.

For clients who are not tech savvy, having to look for special
characters of any kind while editing a video title or description and
then having to look these characters up in a table of HTML equivalents
each time before saving the video is a bit much to ask. Any chance
this can be remedied?

Anton

unread,
Jan 19, 2011, 2:49:01 PM1/19/11
to Sorenson Media Developer Group
Hi Aprille,

Are you also using PHP to save a video to Sorenson? If so, you could
possibly get around this problem by running the video title etc
through PHP's htmlentities() function. This function finds special
characters in the provided string and returns the HTML encoded
equivalent. Please note I am not a Sorenson staff member and I may
have misunderstood the problem you have.

Good luck!

abruno

unread,
Jan 19, 2011, 8:03:12 PM1/19/11
to Sorenson Media Developer Group
Thank you Anton. Did this resolve your issue Aprille?

Ana
Reply all
Reply to author
Forward
0 new messages