I'm having problems again with some RSS feeds and the PHP version of
Shindig. These RSS feeds are returned correctly with the Java version,
but the PHP version returns different JSON.

Here are two examples of RSS feeds which don't work correctly:
http://triglav.jp/blog/feed/
http://www.kots.jp/blog/feed

The link object, rather than being a string of the URL, is an array of
empty objects.

The response from the first feed (with only one entry for brevity):
throw 1; < don't be evil'
>{"http:\/\/triglav.jp\/blog\/feed\/":{"body":"{\"Entry\":[{\"Title\":\"\\u4e2d\\u53e4\\u81ea\\u52d5\\u8eca\\u4e8b\\u696d\\u3092\\u771f\\u5263\\u306b\\u958b\\u59cb\\u3057\\u307e\\u3057\\u305f\\u3002\",\"Link\":[{},{}],\"Date\":1249130296}],\"Title\":\"TRIBLOG\",\"URL\":\"http:\\\/\\\/triglav.jp\\\/blog\\\/feed\\\/\",\"Description\":\"\\u682a\\u5f0f\\u4f1a\\u793e\\u30c8\\u30ea\\u30b0\\u30e9\\u30d5\\u306e\\u65e5\\u5e38\\u3084\\u7c21\\u5358\\u306a\\u304a\\u77e5\\u3089\\u305b\\u306a\\u3069\",\"Link\":\"http:\\\/\\\/triglav.jp\\\/blog\",\"Author\":\"monobe\"}","rc":200}}

As you can see (aside from it being full of unicode chars) is that
Link == [{},{}].

Here's what the Java version returns:

throw 1; < don't be evil'
>{"http://triglav.jp/blog/feed/":{"rc":200,"body":"{\"Link\":\"http://triglav.jp/blog\",\"Description\":\"株式会社トリグラフの日常や簡単なお知らせなど\",\"URL\":\"http://triglav.jp/blog/feed/\",\"Author\":\"monobe\",\"Title\":\"TRIBLOG\",\"Entry\":[{\"Link\":\"http://triglav.jp/blog/2009/08/01/%e4%b8%ad%e5%8f%a4%e8%87%aa%e5%8b%95%e8%bb%8a%e4%ba%8b%e6%a5%ad%e3%82%92%e9%96%8b%e5%a7%8b%e3%81%97%e3%81%be%e3%81%97%e3%81%9f/\",\"Date\":1249130296000,\"Title\":\"中古自動車事業を真剣に開始しました。\"}]}"}}

And the Link is fine.

These urls have unicode characters in them (which might be causing
it). The PHP version does seem to handle other RSS feeds containing
unicode characters, and the second RSS example above does not contain
unicode characters in links. Or it might not have anything to do with
unicode at all.

I'd just like to know if this is a known issue, anyone has come across
it before etc.

Robert

Reply via email to