Skip to content

Instantly share code, notes, and snippets.

Loving dogs.

Kang-Hao (Kenny) Lu kennyluck

Loving dogs.
View GitHub Profile
kennyluck / console
Created Mar 21, 2014
vector.push_back + V8
View console
In file included from /home/kennyluck/Projects/chromium/src/third_party/android_tools/ndk/sources/cxx-stl/stlport//stlport/stl/_uninitialized.h:42:0,
from /home/kennyluck/Projects/chromium/src/third_party/android_tools/ndk/sources/cxx-stl/stlport//stlport/stl/_tempbuf.h:42,
from /home/kennyluck/Projects/chromium/src/third_party/android_tools/ndk/sources/cxx-stl/stlport//stlport/stl/_algo.c:34,
from /home/kennyluck/Projects/chromium/src/third_party/android_tools/ndk/sources/cxx-stl/stlport//stlport/stl/_algo.h:737,
from /home/kennyluck/Projects/chromium/src/third_party/android_tools/ndk/sources/cxx-stl/stlport//stlport/algorithm:41,
from ../src/utils.h:34,
from ../src/platform.h:51,
from ../src/assert-scope.h:32,
from ../src/v8.h:57,
from ../src/arm/
kennyluck /
Created Jul 10, 2011
Twitter doesn't sanitize certain control characters in JSON output of API


Twitter API doesn't sanitize characters such as U+0010 Data Link Escape in JSON output, while it does sanitize it into a "*" in XML. See the following files and pay attention to the text field. This becomes a problem when a 3rd party API site, such as Gtweet, generates XML-based format, in this case RSS, based on the JSON, it would result in malformed XML if the 3rd party site doesn't do sanitization.

In fact, this already broke my feed reader.

How to reproduce

The attached files are generated by