Friday, February 25, 2011

LinkedIn and &038 posting issues

LinkedIn has a strange error when using its Share API
Couldn't parse share document: error: Unexpected character encountered (lex state 3): 'h' 

I was able to replicate the issue by doing a wget on this file:

...and then noticing that the document got retrieved with this URL encoding for Clara's Facebook Era image:

This link breaks:

This link works::

It looks to me Wordpress is inserting back 038 characters and LinkedIn is barfing because of it:

The post processing can take your “&” character and covert it to & which can be a problem if the page is used for video embedding codes and URL’s.
The page I was working on used these special parameters to set the column width and sent the information back to the video service, which then inserted the HTML back into my page. Since WordPress would change the code ‘on the fly’ (not inside my database), I didn’t see this issue at first.
Fortunately for me, while debugging another issue, the support person for the video service did notice and brought it to my attention and I tracked down the issue and the fix.

I guess Wordpress bloggers should know about this issue:

No comments:

Post a Comment