Error loading Planet Mozilla feed

The feed is http://planet.mozilla.org/atom.xml

The error appears to be caused by invalid JSON. According to JSONLint.com, this article has an invalid “story_title”.

Let me know if you need anything else. Thanks!

[...]   
{   
"story\_date": "2011-11-29 21:37:42",   
"story\_authors": "Smokey",   
"short\_parsed\_date": "1:37pm",   
"intelligence": {   
"feed": 0,   
"tags": 0,   
"author": 0,   
"title": 0   
},   
"read\_status": 0,   
"story\_feed\_id": 726397,   
"story\_permalink": "http://www.ardisson.org/afkar/2011/11/29/tetragram-for-advance/",   
"story\_title": "\U0001d319",   
"long\_parsed\_date": "Today, November 29th 1:37pm",   
"story\_tags": [   
"camino",   
"life"   
],   
"story\_content": [...],   
"id": "http://www.ardisson.org/afkar/?p=773"   
},   
[...]   
1 Like

There are two possible problems with that story_title, I hope that me providing these will make it easier for Samuel to fix it, or at least save him some research.

1:
\U0001d319 is not a valid Unicode escape. A lowercase u must be used.

2:
In Javascript and JSON only 4 digits after \u will be parsed. This means only Unicode characters 0000 to FFFF (the Basic Multilingual Plane) are supported. The character that is used here falls far outside this and sits in the 10000 to 1FFFF range (the Supplementary Multilingual Plane). The correct escaping is: \uD834\uDF19.
This correct escaping seems to be the UTF-16 code points, a high and low surrogate that will be combined into a single character.
The Unicode converter by Richard Ishida will tell you more. You can check its source for the convertCharStr2jEsc function if you want to know how it is done.