Order Now AdSolution Sign Up | Login » Bits on the Run Sign Up | Login »

Forums

/

Encoding a + (plus) sign in an ad tag

No replies
Reply

Hi,

An issue just came through that I thought I'd share with everyone.

The issue is this - some ad providers have ad tags with plus signs in the the URL (e.g. "+") - when the ad tag is configured with OVA for Flowplayer, the plus sign is converted to a space when the URL is called, breaking the ad tag.

The underlying issue here is that when Flowplayer passes in the JSON config, it seems to be url decoded, converting plus signs to spaces.

The work around for the problem is to "encode" the plus sign using the hex representation "%2B" when configuring the URL with Flowplayer.

For instance, if your OVA tag config is:

"tag": "http://ad-server/my+ad+tag"

You should configure the ad tag as:

"http": "http://ad-server/my%2Bad%2Btag"

You can find more info on the encodings here:

http://www.blooberry.com/indexdot/html/topics/urlencoding.htm

Paul

Post new comment

  • Allowed HTML tags: <code> <blockquote> <em> <strong> <strike> <ul> <li> <ol>
  • You may post code using <code>...</code> .
  • Lines and paragraphs break automatically.
  • Web page addresses and e-mail addresses turn into links automatically.

More information about formatting options